Home | History | Annotate | Download | only in re.submatch.members
      1 //===----------------------------------------------------------------------===//
      2 //
      3 //                     The LLVM Compiler Infrastructure
      4 //
      5 // This file is dual licensed under the MIT and the University of Illinois Open
      6 // Source Licenses. See LICENSE.TXT for details.
      7 //
      8 //===----------------------------------------------------------------------===//
      9 
     10 // <regex>
     11 
     12 // template <class BidirectionalIterator> class sub_match;
     13 
     14 // constexpr sub_match();
     15 
     16 #include <regex>
     17 #include <cassert>
     18 
     19 int main()
     20 {
     21     {
     22         typedef char CharT;
     23         typedef std::sub_match<const CharT*> SM;
     24         SM sm;
     25         assert(sm.matched == false);
     26     }
     27     {
     28         typedef wchar_t CharT;
     29         typedef std::sub_match<const CharT*> SM;
     30         SM sm;
     31         assert(sm.matched == false);
     32     }
     33 }
     34