8#ifndef ADOBE_STATIC_TABLE_HPP
9#define ADOBE_STATIC_TABLE_HPP
197template <
typename KeyType,
typename ValueType>
205 return (*
this)(x, y.first);
219template <
typename KeyType,
typename ValueType, std::size_t Size,
220 typename Traits = static_table_traits<KeyType, ValueType>>
231 throw std::logic_error(
"static_table key not found");
242 result = iter->second;
bool equal(InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, BinaryPredicate pred)
void sort(RandomAccessRange &range)
sort implementation
I lower_bound(I f, I l, const T &x)
A traits class for use with adobe::static_table.
result_type equal(const key_type &x, const key_type &y) const
result_type operator()(const key_type &x, const entry_type &y) const
std::pair< key_type, value_type > entry_type
result_type operator()(const entry_type &x, const key_type &y) const
result_type operator()(const entry_type &x, const entry_type &y) const
A simple lookup table of fixed size. [under review].
bool operator()(const key_type &key, value_type &result) const
const value_type & operator()(const key_type &key) const
traits_type::entry_type entry_type
traits_type::value_type value_type
traits_type::key_type key_type