Changeset View
Changeset View
Standalone View
Standalone View
test/std/re/re.results/re.results.const/default.pass.cpp
Show All 16 Lines | |||||
#include "test_macros.h" | #include "test_macros.h" | ||||
template <class CharT> | template <class CharT> | ||||
void | void | ||||
test() | test() | ||||
{ | { | ||||
std::match_results<const CharT*> m; | std::match_results<const CharT*> m; | ||||
assert(m.size() == 0); | assert(m.size() == 0); | ||||
assert(m.str() == std::basic_string<CharT>()); | assert(!m.ready() || m.str() == std::basic_string<CharT>()); | ||||
assert(m.get_allocator() == std::allocator<std::sub_match<const CharT*> >()); | assert(m.get_allocator() == std::allocator<std::sub_match<const CharT*> >()); | ||||
} | } | ||||
int main(int, char**) | int main(int, char**) | ||||
{ | { | ||||
test<char>(); | test<char>(); | ||||
test<wchar_t>(); | test<wchar_t>(); | ||||
return 0; | return 0; | ||||
} | } |