home/src/vector.hh
Maxime Coste 6e389512f5 Modernize the way we compute memory domains from type
Use a constexpr function instead of a template type
2017-05-26 07:59:18 +01:00

17 lines
278 B
C++

#ifndef vector_hh_INCLUDED
#define vector_hh_INCLUDED
#include "memory.hh"
#include <vector>
namespace Kakoune
{
template<typename T, MemoryDomain domain = memory_domain(Meta::Type<T>{})>
using Vector = std::vector<T, Allocator<T, domain>>;
}
#endif // vector_hh_INCLUDED