static_table< KeyType, ValueType, Size, Traits > Class Template Reference
Detailed Descriptiontemplate<typename KeyType, typename ValueType, std::size_t Size, typename Traits = static_table_traits<KeyType, ValueType>>
|
const adobe::static_table::value_type & operator() | ( | const key_type & | key) | const |
- Parameters
-
key The key whose stored value we are searching for.
- Exceptions
-
std::logic_error Thrown if the key does not exist in the table.
- Returns
- a reference to the value found associated with
key
.
- Note
- Calling this function before calling sort() yields undefined results.
Definition at line 228 of file static_table.hpp.
bool operator() | ( | const key_type & | key, |
value_type & | result | ||
) | const |
- Parameters
-
key The key whose stored value we are searching for. result Set to the value associated with the key if key
is found.
- Exceptions
-
None Guaranteed not to throw.
- Returns
true
ifkey
was found and result's assignment did not throw.false
otherwise.
- Note
- Calling this function before calling sort() yields undefined results.
Definition at line 238 of file static_table.hpp.
void sort | ( | ) |
Sorts the contents of the table according to the static_table_traits type.
Definition at line 250 of file static_table.hpp.
Member Data Documentation
table_m |
The static lookup table contents. This variable is not intended to be manipulated directly. It is publicly available to support static table initialization by the C++ compiler.
Definition at line 256 of file static_table.hpp.