carb::cpp::swap

Defined in carb/cpp/StringView.h

template<class CharT, class Traits>
constexpr void carb::cpp::swap(carb::cpp::basic_string_view<CharT, Traits> &a, carb::cpp::basic_string_view<CharT, Traits> &b) noexcept

Swaps two string views.

Parameters
  • a – String view to swap.

  • b – String view to swap.