mirror of
https://github.com/arun11299/cpp-jwt.git
synced 2025-05-21 04:08:33 +00:00
Added short string type
This commit is contained in:
parent
9e69389caf
commit
de38b3a82a
1 changed files with 14 additions and 0 deletions
14
include/jwt/short_string.hpp
Normal file
14
include/jwt/short_string.hpp
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
#ifndef CPP_JWT_SHORT_STRING_HPP
|
||||||
|
#define CPP_JWT_SHORT_STRING_HPP
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include "jwt/stack_alloc.hpp"
|
||||||
|
|
||||||
|
namespace jwt {
|
||||||
|
|
||||||
|
template <size_t N>
|
||||||
|
using short_string = std::basic_string<char, std::char_traits<char>, stack_alloc<char, N>>;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif
|
Loading…
Add table
Add a link
Reference in a new issue