#include <algorithm>
#include <array>
#include <atomic>
#include <bitset>
#include <cassert>
#include <cstdint>
#include <cstdlib>
#include <functional>
#include <iostream>
#include <iterator>
#include <limits>
#include <list>
#include <memory>
#include <mutex>
#include <stdexcept>
#include <string>
#include <thread>
#include <type_traits>
#include <utility>
#include <vector>
#include "cuckoohash_config.hh"
#include "cuckoohash_util.hh"
#include "bucket_container.hh"
Go to the source code of this file.
|
class | libcuckoo::cuckoohash_map< Key, T, Hash, KeyEqual, Allocator, SLOT_PER_BUCKET > |
|
class | libcuckoo::cuckoohash_map< Key, T, Hash, KeyEqual, Allocator, SLOT_PER_BUCKET >::locked_table |
|
class | libcuckoo::cuckoohash_map< Key, T, Hash, KeyEqual, Allocator, SLOT_PER_BUCKET >::locked_table::const_iterator |
|
class | libcuckoo::cuckoohash_map< Key, T, Hash, KeyEqual, Allocator, SLOT_PER_BUCKET >::locked_table::iterator |
|
|
template<class Key , class T , class Hash , class KeyEqual , class Allocator , std::size_t SLOT_PER_BUCKET> |
void | libcuckoo::swap (cuckoohash_map< Key, T, Hash, KeyEqual, Allocator, SLOT_PER_BUCKET > &lhs, cuckoohash_map< Key, T, Hash, KeyEqual, Allocator, SLOT_PER_BUCKET > &rhs) noexcept |
|
◆ swap()
template<class Key , class T , class Hash , class KeyEqual , class Allocator , std::size_t SLOT_PER_BUCKET>
void libcuckoo::swap |
( |
cuckoohash_map< Key, T, Hash, KeyEqual, Allocator, SLOT_PER_BUCKET > & |
lhs, |
|
|
cuckoohash_map< Key, T, Hash, KeyEqual, Allocator, SLOT_PER_BUCKET > & |
rhs |
|
) |
| |
|
noexcept |
Specializes the std::swap
algorithm for cuckoohash_map
. Calls lhs.swap(rhs)
.
- Parameters
-
lhs | the map on the left side to swap |
lhs | the map on the right side to swap |