//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // // template >> // class match_results // { // public: // typedef sub_match value_type; // typedef const value_type& const_reference; // typedef const_reference reference; // typedef /implementation-defined/ const_iterator; // typedef const_iterator iterator; // typedef typename iterator_traits::difference_type difference_type; // typedef typename allocator_traits::size_type size_type; // typedef Allocator allocator_type; // typedef typename iterator_traits::value_type char_type; // typedef basic_string string_type; #include #include template void test() { typedef std::match_results MR; static_assert((std::is_same >::value), ""); static_assert((std::is_same& >::value), ""); static_assert((std::is_same& >::value), ""); static_assert((!std::is_same::value), ""); static_assert((std::is_same::value), ""); static_assert((std::is_same::value), ""); static_assert((std::is_same > >::value), ""); static_assert((std::is_same::value), ""); static_assert((std::is_same >::value), ""); } int main() { test(); test(); }