rapidyaml  0.7.2
parse and emit YAML, and do it fast
c4::yml::detail Namespace Reference

a CRTP base providing read-only methods for ConstNodeRef and NodeRef More...

Classes

struct  RoNodeMethods
 

Typedefs

using pfn_relocate_arena = void(*)(void *, csubstr prev_arena, substr next_arena)
 

Functions

bool is_set_ (ConstNodeRef n)
 
template<class T >
auto read_skip_plus (csubstr val, T *v) -> typename std::enable_if< std::is_arithmetic< T >::value, bool >::type
 

Detailed Description

a CRTP base providing read-only methods for ConstNodeRef and NodeRef

Typedef Documentation

◆ pfn_relocate_arena

using c4::yml::detail::pfn_relocate_arena = typedef void (*)(void*, csubstr prev_arena, substr next_arena)

Definition at line 29 of file event_handler_stack.hpp.

Function Documentation

◆ read_skip_plus()

template<class T >
auto c4::yml::detail::read_skip_plus ( csubstr  val,
T *  v 
) -> typename std::enable_if<std::is_arithmetic<T>::value, bool>::type
inline

Definition at line 1610 of file node.hpp.

1612 {
1613  if(val.begins_with('+'))
1614  val = val.sub(1);
1615  return from_chars(val, v);
1616 }
bool from_chars(ryml::csubstr buf, vec2< T > *v)

References c4::from_chars().

Referenced by c4::yml::read().