1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- #ifndef BOOST_JSON_VISIT_HPP
- #define BOOST_JSON_VISIT_HPP
- #include <boost/json/detail/config.hpp>
- #include <boost/json/value.hpp>
- #include <type_traits>
- #include <utility>
- namespace boost {
- namespace json {
- template<class Visitor>
- auto
- visit(
- Visitor&& v,
- value& jv) -> decltype(
- std::declval<Visitor>()(nullptr));
- template<class Visitor>
- auto
- visit(
- Visitor &&v,
- value const &jv) -> decltype(
- std::declval<Visitor>()(nullptr));
- }
- }
- #include <boost/json/impl/visit.hpp>
- #endif
|