Lines Matching defs:swap
359 // Introduce one more deeper nested namespace to avoid leaking using std::swap.
361 using std::swap;
364 // Tests if swap can be called. Check<T&>(0) returns true_type iff swap
369 -> decltype(swap(std::declval<T>(), std::declval<T>()), std::true_type());
638 void swap(Optional& other) {
653 using std::swap;
654 swap(**this, *other);
870 // to specialize the template in std. Thus, swap() (kind of) overloading is
875 swap(Optional<T>& lhs, Optional<T>& rhs) {
876 lhs.swap(rhs);