Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::match_results<BidirIt,Alloc>::operator=

      From cppreference.com
      <cpp‎ |regex‎ |match results
       
       
       
      Regular expressions library
      Classes
      (C++11)
      Algorithms
      Iterators
      Exceptions
      Traits
      Constants
      (C++11)
      Regex Grammar
       
       
      Defined in header<regex>
      match_results& operator=(const match_results& other);
      (1)
      match_results& operator=( match_results&& other)noexcept;
      (2)

      Assigns the contents.

      1) Copy assignment operator. Assigns the contents ofother.
      2) Move assignment operator. Assigns the contents ofother using move semantics.other is in a valid, but unspecified state after the operation.

      Given the value ofother before the assignment asm and any integer in[0m.size()) asn, when the assignment finishes, the following member functions should return the specified values:

       Member function Value
      ready()m.ready()
      size()m.size()
      str(n)m.str(n)
      prefix()m.prefix()
      suffix()m.suffix()
      operator[](n)m[n]
      length(n)m.length(n)
      position(n) m.position(n) 

      Contents

      [edit]Parameters

      other - another match results object

      [edit]Return value

      *this

      [edit]Exceptions

      1) May throw implementation-defined exceptions.

      [edit]Defect reports

      The following behavior-changing defect reports were applied retroactively to previously published C++ standards.

      DRApplied toBehavior as publishedCorrect behavior
      LWG 2191C++11n could be negative in the postconditionscan only be non-negative
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/regex/match_results/operator%3D&oldid=177534"

      [8]ページ先頭

      ©2009-2025 Movatter.jp