Skip to content

Defined in header <fkYAML/node.hpp>

fkyaml::basic_node::integer_type

using integer_type = IntegerType;

The type used to store boolean node values.

To store integer objects in basic_node class, the type is defined by the template parameter IntegerType which chooses the type to use for integer objects.
If not explicitly specified, the default type std::int64_t will be chosen.
With the decided type, integer objects are stored directly inside a basic_node.

Example
#include <cstdint>
#include <iomanip>
#include <iostream>
#include <type_traits>
#include <fkYAML/node.hpp>

int main() {
    std::cout << std::boolalpha << std::is_same<std::int64_t, fkyaml::node::integer_type>::value << std::endl;
    return 0;
}

output:

true

See Also