libcuckoo  0.3.1
Classes | Functions
cuckoohash_map.hh File Reference
#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"
Include dependency graph for cuckoohash_map.hh:

Go to the source code of this file.

Classes

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
 

Functions

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
 

Function Documentation

◆ 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
lhsthe map on the left side to swap
lhsthe map on the right side to swap