About 99 results
Open links in new tab
  1. std::swap - cppreference.com

    std::swap may be specialized in namespace std for program-defined types, but such specializations are not found by ADL (the namespace std is not the associated namespace for the program-defined …

  2. std::swap (std::basic_string) - cppreference.com

    Specializes the std::swap algorithm for std::basic_string. Swaps the contents of lhs and rhs. Equivalent to lhs.swap(rhs).

  3. std::iter_swap - cppreference.com

    This function template models the semantics of the swap operation given by Swappable. That is, overloads of swap found by ADL and the fall back of std::swap are considered.

  4. std::array<T,N>::swap - cppreference.com

    Exchanges the contents of the container with those of other. Does not cause iterators and references to associate with the other container.

  5. std::swap (std::any) - cppreference.com

    Overloads the std::swap algorithm for std::any. Swaps the content of two any objects by calling lhs.swap(rhs). Parameters

  6. std::swap (std::function) - cppreference.com

    Overloads the std::swap algorithm for std::function. Exchanges the state of lhs with that of rhs. Effectively calls lhs.swap(rhs).

  7. std::basic_string<CharT,Traits,Allocator>::swap - Reference

    Exchanges the contents of the string with those of other. All iterators and references may be invalidated.

  8. std::pair<T1,T2>::swap - cppreference.com

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

  9. std::swap (std::variant) - cppreference.com

    Overloads the std::swap algorithm for std::variant. Effectively calls lhs.swap(rhs). This overload participates in overload resolution only if std::is_move_constructible_v<T_i> and …

  10. std::swapcppreference.com

    Both custom specializations and overloads of the std::swap algorithm are allowed, but the overloads are generally preferred since specializations of a function template aren't allowed for template classes. …