sparse-map
Classes | Namespaces | Macros | Typedefs | Enumerations | Functions
sparse_hash.h File Reference
#include <algorithm>
#include <cassert>
#include <climits>
#include <cmath>
#include <cstdint>
#include <cstddef>
#include <iterator>
#include <limits>
#include <memory>
#include <stdexcept>
#include <tuple>
#include <type_traits>
#include <utility>
#include <vector>
#include "sparse_growth_policy.h"

Go to the source code of this file.

Classes

class  tsl::detail_sparse_hash::sparse_hash< ValueType, KeySelect, ValueSelect, Hash, KeyEqual, Allocator, GrowthPolicy, ExceptionSafety, Sparsity, Probing >
 
class  tsl::detail_sparse_hash::sparse_hash< ValueType, KeySelect, ValueSelect, Hash, KeyEqual, Allocator, GrowthPolicy, ExceptionSafety, Sparsity, Probing >::sparse_iterator< IsConst >
 
class  tsl::detail_sparse_hash::sparse_hash< ValueType, KeySelect, ValueSelect, Hash, KeyEqual, Allocator, GrowthPolicy, ExceptionSafety, Sparsity, Probing >::sparse_iterator< IsConst >
 

Namespaces

 tsl
 
 tsl::sh
 
 tsl::detail_popcount
 
 tsl::detail_sparse_hash
 

Macros

#define tsl_sh_assert(expr)   (static_cast<void>(0))
 

Typedefs

using tsl::detail_sparse_hash::slz_size_type = std::uint64_t
 

Enumerations

enum  tsl::sh::probing { tsl::sh::probing::linear, tsl::sh::probing::quadratic }
 
enum  tsl::sh::exception_safety { tsl::sh::exception_safety::basic, tsl::sh::exception_safety::strong }
 
enum  tsl::sh::sparsity { tsl::sh::sparsity::high, tsl::sh::sparsity::medium, tsl::sh::sparsity::low }
 

Functions

int tsl::detail_popcount::fallback_popcountll (unsigned long long int x)
 
int tsl::detail_popcount::fallback_popcount (unsigned int x)
 
int tsl::detail_popcount::popcountll (unsigned long long int x)
 
int tsl::detail_popcount::popcount (unsigned int x)
 
constexpr bool tsl::detail_sparse_hash::is_power_of_two (std::size_t value)
 
std::size_t tsl::detail_sparse_hash::round_up_to_power_of_two (std::size_t value)
 

Macro Definition Documentation

◆ tsl_sh_assert

#define tsl_sh_assert (   expr)    (static_cast<void>(0))

MIT License

Copyright (c) 2017 Tessil

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.