Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::swap(std::match_results)

      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>
      template<class BidirIt,class Alloc>

      void swap( match_results<BidirIt,Alloc>& x1,

                 match_results<BidirIt,Alloc>& x2)noexcept;
      (since C++11)

      Specializes thestd::swap algorithm forstd::match_results. Exchanges the contents ofx1 with those ofx2. Effectively callsx1.swap(x2).

      Contents

      [edit]Parameters

      x1, x2 - the match_results objects whose contents will be swapped
      Type requirements
      -
      BidirIt must meet the requirements ofLegacyBidirectionalIterator.
      -
      Alloc must meet the requirements ofAllocator.

      [edit]Return value

      (none)

      [edit]Example

      This section is incomplete
      Reason: no example

      [edit]See also

      swaps the contents
      (public member function)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/regex/match_results/swap2&oldid=161015"

      [8]ページ先頭

      ©2009-2025 Movatter.jp