Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::sub_match<BidirIt>::sub_match

      From cppreference.com
      <cpp‎ |regex‎ |sub match
       
       
       
      Regular expressions library
      Classes
      (C++11)
      Algorithms
      Iterators
      Exceptions
      Traits
      Constants
      (C++11)
      Regex Grammar
       
       
      constexpr sub_match();
      (since C++11)

      Default constructs astd::sub_match. Thematched member is set tofalse and the inherited membersfirst andsecond are value-initialized.

      This is the only publicly accessible and defined constructor.

      [edit]Example

      Run this code
      #include <cassert>#include <regex> int main(){std::sub_match<constchar*> s;assert(!s.matched);}
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/regex/sub_match/sub_match&oldid=178363"

      [8]ページ先頭

      ©2009-2025 Movatter.jp