1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-12-26 21:22:00 +03:00
kakoune/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