JWT header impl

This commit is contained in:
Arun M 2017-11-01 17:04:09 +05:30
parent 063a0af131
commit 3e867d77f1
13 changed files with 358 additions and 20 deletions

View file

@ -1,22 +0,0 @@
#include <iostream>
#include <vector>
#include "./stack_alloc.hpp"
template <typename T, size_t SZ = 2>
using SmallVector = std::vector<T, jwt::stack_alloc<T, SZ, alignof(T)>>;
int main()
{
SmallVector<int>::allocator_type::arena_type a;
SmallVector<int> v{a};
v.push_back(1);
v.push_back(1);
v.push_back(1);
v.push_back(1);
v.push_back(1);
v.push_back(1);
return 0;
}