basic_regex_swap2

basic_regex_swap2 (기본 정규식 교환)

std::swap(basic_regex 특수화)는 두 std::basic_regex의 상태를 교환하는 함수예요. C++11부터 사용할 수 있어요.

출처: cppreference

본문

시그니처는 다음과 같아요.

template< class CharT, class Traits >
void swap( basic_regex<CharT, Traits>& lhs, basic_regex<CharT, Traits>& rhs ) noexcept;

(since C++11)

std::basic_regex에 대한 std::swap 알고리즘을 오버로드해요. lhs의 상태를 rhs와 교환해요. 효과적으로 lhs.swap(rhs)를 호출해요.

매개변수 (Parameters)

  • lhs, rhs — 교환할 정규식

반환값 (Return value)

(없음)

예제 (Example)

이 섹션은 불완전해요. 이유: 예제 없음

더 알아보기 (Learn more)

cppreference