Loading...
Searching...
No Matches
HashMap.hpp
1#pragma once
2#include <score/serialization/IsTemplate.hpp>
3
4#include <ossia/detail/config.hpp>
5
6#include <ossia/detail/hash_map.hpp>
7namespace score
8{
9template <class Key, class T>
10using hash_map = ossia::hash_map<Key, T>;
11
12template <typename Map>
13void optimize_hash_map(Map& map)
14{
15 map.max_load_factor(0.1f);
16 map.reserve(map.size());
17}
18}
19
20template <typename T, typename U>
21struct is_template<ossia::hash_map<T, U>> : std::true_type
22{
23};
Base toolkit upon which the software is built.
Definition Application.cpp:97