Program Listing for File container.hpp¶
↰ Return to documentation for file (SeQuant/core/container.hpp
)
//
// Created by Eduard Valeyev on 3/27/18.
//
#ifndef SEQUANT_CONTAINER_HPP
#define SEQUANT_CONTAINER_HPP
#include <boost/container/flat_map.hpp>
#include <boost/container/flat_set.hpp>
#include <boost/container/small_vector.hpp>
#include <boost/range.hpp>
#include <map>
#include <set>
#include <vector>
namespace sequant {
namespace container {
template <typename T>
using vector = std::vector<T>;
template <typename T, std::size_t N = 8>
using svector = boost::container::small_vector<T, N>;
template <typename Key, typename Compare = std::less<Key>>
using set = boost::container::flat_set<Key, Compare>;
template <typename Key, typename Value, typename Compare = std::less<Key>>
using map = boost::container::flat_map<Key, Value, Compare>;
template <typename Key, typename Value, typename Compare = std::less<Key>>
using multimap = boost::container::flat_multimap<Key, Value, Compare>;
using boost::begin;
using boost::end;
} // namespace container
} // namespace sequant
#endif // SEQUANT_CONTAINER_HPP