Viam C++ SDK current
Loading...
Searching...
No Matches
Functions
ProtoValue visit API

Functions

template<typename Visitor >
auto viam::sdk::visit (Visitor &&visitor, ProtoValue &value) -> decltype(std::forward< Visitor >(visitor)(std::declval< std::nullptr_t & >()))
 
template<typename Visitor >
auto viam::sdk::visit (Visitor &&visitor, const ProtoValue &value) -> decltype(std::forward< Visitor >(visitor)(std::declval< const std::nullptr_t & >()))
 
template<typename Visitor >
auto viam::sdk::visit (Visitor &&visitor, ProtoValue &&value) -> decltype(std::forward< Visitor >(visitor)(std::declval< std::nullptr_t && >()))
 

Detailed Description

Invoke a function object with the contents of a ProtoValue. The function object must be callable with all the possible types of ProtoValue. visit will inspect the ProtoValue to determine its stored type, and then call the visitor on it with value category matching that with which the ProtoValue was passed.