6e389512f5
Use a constexpr function instead of a template type
17 lines
278 B
C++
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
|