mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-18 02:08:09 +08:00
add alias for snake_case types
This commit is contained in:
@@ -22,6 +22,15 @@ using Datetime = basic_datetime<unsigned int, int>;
|
|||||||
using Array = std::vector<value>;
|
using Array = std::vector<value>;
|
||||||
using Table = std::unordered_map<key, 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
|
enum class value_t : std::uint8_t
|
||||||
{
|
{
|
||||||
Boolean = 1,
|
Boolean = 1,
|
||||||
|
Reference in New Issue
Block a user