mirror of
https://github.com/ToruNiina/toml11.git
synced 2024-11-26 22:30:06 +00:00
add alias for snake_case types
This commit is contained in:
parent
532457345c
commit
5e052237ba
@ -22,6 +22,15 @@ using Datetime = basic_datetime<unsigned int, int>;
|
||||
using Array = std::vector<value>;
|
||||
using Table = std::unordered_map<key, value>;
|
||||
|
||||
// alias for snake_case, consistency with STL/Boost, toml::key, toml::value
|
||||
using boolean = Boolean;
|
||||
using integer = Integer;
|
||||
using floating = Float; // XXX float is keyword
|
||||
using string = String;
|
||||
using datetime = Datetime;
|
||||
using array = Array;
|
||||
using table = Table;
|
||||
|
||||
enum class value_t : std::uint8_t
|
||||
{
|
||||
Boolean = 1,
|
||||
|
Loading…
Reference in New Issue
Block a user