38 #ifndef Foam_HashTableCore_H 39 #define Foam_HashTableCore_H 81 template<class IteratorType, class TableType>
103 bool empty() const
noexcept {
return !size_; }
104 label size() const
noexcept {
return size_; }
106 IteratorType begin() const
noexcept {
return iter_; }
107 IteratorType cbegin() const
noexcept {
return iter_; }
109 IteratorType
end()
const {
return IteratorType(); }
110 IteratorType cend()
const {
return IteratorType(); }
Factory class for creating a begin/end pair for any const iterator type, normally associated with a H...
ClassName("HashTable")
Declare type-name (with debug switch)
A HashTable similar to std::unordered_map.
Bits that are independent of HashTable template parameters.
constexpr HashTableCore() noexcept=default
Default construct.
Macro definitions for declaring ClassName(), NamespaceName(), etc.
static constexpr int32_t maxTableSize
Maximum allowable internal table size (must be a power of two!).
static label canonicalSize(const label size) noexcept
Return a canonical (power-of-two) of the requested size.
Singleton null-object class and instance.