2 * This program checks if the compiler / platform supports aliased
6 #include "test_config.h"
14 template<typename _CharT
, const uint32_t _Bound
,
15 typename _Traits
= std::char_traits
<_CharT
>,
16 typename _Alloc
= std::allocator
<_CharT
> >
17 class bounded_basic_string
: public std::basic_string
<_CharT
, _Traits
, _Alloc
>
19 using _String
= std::basic_string
<_CharT
, _Traits
, _Alloc
>;
22 static const uint32_t bound_
= _Bound
;
24 bounded_basic_string() { }
26 bounded_basic_string(const _CharT
* __s
,
27 const _Alloc
& __a
= _Alloc ())
28 : _String(__s
, __a
) { }
30 ~bounded_basic_string() noexcept
33 uint32_t bound () const
40 template <const uint32_t _Bound
>
41 using bounded_string
= bounded_basic_string
<char, _Bound
>;
45 run_main (int, ACE_TCHAR
*[])
47 ACE_START_TEST (ACE_TEXT("Compiler_Features_19_Test"));
49 using string100
= IDL::bounded_string
<100>;
50 string100
s100("world");
53 ACE_TEXT ("String %C bound %d\n"), s100
.c_str(), s100
.bound ()));
56 ACE_TEXT ("Template alias works.\n")));