39 #ifndef Foam_HashTableCore_H 40 #define Foam_HashTableCore_H 79 template<class IteratorType, class TableType>
93 label size() const
noexcept {
return size_; }
94 bool empty() const
noexcept {
return !size_; }
96 inline IteratorType
begin()
const;
97 inline IteratorType
cbegin()
const;
99 inline IteratorType
end()
const;
100 inline IteratorType
cend()
const;
Factory class for creating a begin/end pair for any const iterator.
ClassName("HashTable")
Declare type-name (with debug switch)
static label canonicalSize(const label requested_size)
Return a canonical (power-of-two) of the requested size.
HashTableCore() noexcept=default
Default construct.
static const label maxTableSize
Maximum allowable internal table size. Approximately labelMax/4.
constexpr auto cend(const C &c) -> decltype(c.end())
Return const_iterator to the end of the container c.
A HashTable similar to std::unordered_map.
constexpr auto end(C &c) -> decltype(c.end())
Return iterator to the end of the container c.
constexpr auto cbegin(const C &c) -> decltype(c.begin())
Return const_iterator to the beginning of the container c.
Bits that are independent of HashTable template parameters.
Macro definitions for declaring ClassName(), NamespaceName(), etc.
Singleton null-object class and instance.
constexpr auto begin(C &c) -> decltype(c.begin())
Return iterator to the beginning of the container c.