32#include <oneapi/tbb/concurrent_set.h>
33#include <oneapi/tbb/concurrent_map.h>
34#include <oneapi/tbb/concurrent_unordered_set.h>
35#include <oneapi/tbb/concurrent_unordered_map.h>
38 template<
typename T>
using vector = tbb::concurrent_vector<T>;
39 template<
typename T>
using set = tbb::concurrent_set<T>;
40 template<
typename T>
using unordered_set = tbb::concurrent_unordered_set<T, std::hash<T>>;
41 template<
typename T,
typename D>
using map = tbb::concurrent_map<T, D, std::hash<T>>;
42 template<
typename T,
typename D>
using unordered_map = tbb::concurrent_unordered_map<T, D, std::hash<T>>;
44 template<
typename T>
using graph = vector<set<T>>;
49#include <unordered_set>
50#include <unordered_map>
53 template<
typename T>
using vector = std::vector<T>;
54 template<
typename T>
using set = std::set<T>;
56 template<
typename T,
typename D>
using map = std::map<T, D>;
57 template<
typename T,
typename D>
using unordered_map = std::unordered_map<T, D>;
64 uvec out(in.size(), fill::none);
66 for(
const auto J : in) out(I++) =
static_cast<uword
>(J);
71 uvec out(in.size(), fill::none);
73 for(
const auto J : in) out(I++) =
static_cast<uword
>(J);
uvec to_uvec(const suanpan::set< T > &in)
Definition: container.h:63
Definition: MatrixModifier.hpp:36
std::vector< T > vector
Definition: container.h:53
std::unordered_set< T > unordered_set
Definition: container.h:55
vector< set< T > > graph
Definition: container.h:59
std::unordered_map< T, D > unordered_map
Definition: container.h:57
std::set< T > set
Definition: container.h:54
std::map< T, D > map
Definition: container.h:56