swap overloads
Declared in <folly/File.h>
Swaps the file descriptors and ownership
void
swap(
File& a,
File& b) noexcept;
» more...
Swaps the contents of two memory mappings.
void
swap(
MemoryMapping& a,
MemoryMapping& b) noexcept;
» more...
Swaps the value of a with the value of b.
void
swap(
exception_wrapper& a,
exception_wrapper& b) noexcept;
» more...
Swaps the managed objects of two pointers.
void
swap(
holder& a,
holder& b) noexcept;
» more...
Swaps two wrappers.
constexpr
void
swap(
indirect& a,
indirect& b) noexcept(noexcept(a.swap(b)));
» more...
Swaps the held lock state of two lock holders.
void
swap(
self& a,
self& b) noexcept;
» more...
Swaps the held lock state of two lock holders.
void
swap(
self& a,
self& b) noexcept;
» more...
Swaps the held lock state of two lock holders.
void
swap(
self& a,
self& b) noexcept;
» more...
Swaps the held lock state of two lock holders.
void
swap(
self& a,
self& b) noexcept;
» more...
Swaps the stored value of a synchronized object with another object.
void
swap(
thread_cached_synchronized& self,
A& that) noexcept(false);
» more...
Exchanges the callable objects of two Function instances.
template<typename FunctionType>
void
swap(
Function<FunctionType>& lhs,
Function<FunctionType>& rhs) noexcept;
» more...
Swaps the contents of two Optionals.
template<class T>
void
swap(
Optional<T>& a,
Optional<T>& b) noexcept(noexcept(a.swap(b)));
» more...
Swap two Poly<I> instances.
template<class I>
void
swap(
Poly<I>& left,
Poly<I>& right) noexcept;
» more...
Swaps the state of two PrimaryPtr objects.
template<typename T>
void
swap(
PrimaryPtr<T>& x,
PrimaryPtr<T>& y) noexcept;
» more...
Swap the contents of two ranges.
template<class Iter>
void
swap(
Range<Iter>& lhs,
Range<Iter>& rhs) noexcept(noexcept(lhs.swap(rhs)));
» more...
Swap the contents of two hazard pointer holders.
template<template<
typename,
typename> typename Atom = atomic>
void
swap(
hazptr_holder<Atom>& a,
hazptr_holder<Atom>& b) noexcept;
» more...
Swap
template<typename PtrT>
void
swap(
not_null<PtrT>& lhs,
not_null<PtrT>& rhs) noexcept;
» more...
Swap the underlying pointers of two wrappers.
template<typename Pointer>
constexpr
void
swap(
propagate_const<Pointer>& a,
propagate_const<Pointer>& b) noexcept(noexcept(a.swap(b)));
» more...
** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** Swap function
template<
class Char,
std::size_t N>
constexpr
void
swap(
BasicFixedString<Char, N>& a,
BasicFixedString<Char, N>& b) noexcept;
» more...
swap Expected values
template<
class Value,
class Error>
void
swap(
Expected<Value, Error>& lhs,
Expected<Value, Error>& rhs) noexcept(/* see-below */);
» more...
Swap the data held by two Synchronized objects.
template<
class T,
class M>
void
swap(
Synchronized<T, M>& lhs,
Synchronized<T, M>& rhs);
» more...
Swap the contents of two vectors.
template<
class T,
class A>
void
swap(
fbvector<T, A>& lhs,
fbvector<T, A>& rhs) noexcept;
» more...
Swap the contents of two small_vectors.
template<
class T,
std::size_t MaxInline,
class P>
void
swap(
small_vector<T, MaxInline, P>& a,
small_vector<T, MaxInline, P>& b);
» more...
Swaps the contents of two sets.
template<
typename K,
typename H,
typename E,
typename A>
void
swap(
F14FastSet<K, H, E, A>& lhs,
F14FastSet<K, H, E, A>& rhs) noexcept(noexcept(lhs.swap(rhs)));
» more...
Swaps the contents of two sets.
template<
typename K,
typename H,
typename E,
typename A>
void
swap(
F14NodeSet<K, H, E, A>& lhs,
F14NodeSet<K, H, E, A>& rhs) noexcept(noexcept(lhs.swap(rhs)));
» more...
Swaps the contents of two sets.
template<
typename K,
typename H,
typename E,
typename A>
void
swap(
F14ValueSet<K, H, E, A>& lhs,
F14ValueSet<K, H, E, A>& rhs) noexcept(noexcept(lhs.swap(rhs)));
» more...
Swaps the contents of two sets.
template<
typename K,
typename H,
typename E,
typename A>
void
swap(
F14VectorSet<K, H, E, A>& lhs,
F14VectorSet<K, H, E, A>& rhs) noexcept(noexcept(lhs.swap(rhs)));
» more...
Swaps the contents of two strings.
template<
typename E,
class T,
class A,
class S>
void
swap(
basic_fbstring<E, T, A, S>& lhs,
basic_fbstring<E, T, A, S>& rhs);
» more...
Swap function that can be found using ADL.
template<
class T,
class C,
class A,
class G>
void
swap(
heap_vector_set<T, C, A, G>& a,
heap_vector_set<T, C, A, G>& b) noexcept;
» more...
Swap function that can be found using ADL.
template<
class T,
class C,
class A,
class G>
void
swap(
sorted_vector_set<T, C, A, G>& a,
sorted_vector_set<T, C, A, G>& b);
» more...
Swaps the contents of two maps.
template<
typename K,
typename M,
typename H,
typename E,
typename A>
void
swap(
F14FastMap<K, M, H, E, A>& lhs,
F14FastMap<K, M, H, E, A>& rhs) noexcept(noexcept(lhs.swap(rhs)));
» more...
Swaps the contents of two maps.
template<
typename K,
typename M,
typename H,
typename E,
typename A>
void
swap(
F14NodeMap<K, M, H, E, A>& lhs,
F14NodeMap<K, M, H, E, A>& rhs) noexcept(noexcept(lhs.swap(rhs)));
» more...
Swaps the contents of two maps.
template<
typename K,
typename M,
typename H,
typename E,
typename A>
void
swap(
F14ValueMap<K, M, H, E, A>& lhs,
F14ValueMap<K, M, H, E, A>& rhs) noexcept(noexcept(lhs.swap(rhs)));
» more...
Swaps the contents of two maps.
template<
typename K,
typename M,
typename H,
typename E,
typename A>
void
swap(
F14VectorMap<K, M, H, E, A>& lhs,
F14VectorMap<K, M, H, E, A>& rhs) noexcept(noexcept(lhs.swap(rhs)));
» more...
Swap function that can be found using ADL.
template<
class K,
class V,
class C,
class A,
class G>
void
swap(
heap_vector_map<K, V, C, A, G>& a,
heap_vector_map<K, V, C, A, G>& b) noexcept;
» more...
Swap function that can be found using ADL.
template<
class K,
class V,
class C,
class A,
class G>
void
swap(
sorted_vector_map<K, V, C, A, G>& a,
sorted_vector_map<K, V, C, A, G>& b);
» more...
| Name | Description |
|---|---|
| A | Type of the object to swap with. |
| Name | Description |
|---|---|
| a | The first File to swap. |
| b | The second File to swap. |
| self | Synchronized object whose value is swapped. |
| that | Object to swap with the stored value. |
| lhs | The first function. |
| rhs | The second function. |
| left | The first instance. |
| right | The second instance. |
| x | The first PrimaryPtr. |
| y | The second PrimaryPtr. |