MCPcopy Create free account
hub / github.com/boostorg/json / reset

Method reset

include/boost/json/impl/serializer.hpp:833–844  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

831
832template<class T>
833void
834serializer::reset(T const* p) noexcept
835{
836 BOOST_CORE_STATIC_ASSERT( !std::is_pointer<T>::value );
837 BOOST_CORE_STATIC_ASSERT( std::is_object<T>::value );
838
839 p_ = p;
840 fn0_ = &detail::write_impl<T, true>;
841 fn1_ = &detail::write_impl<T, false>;
842 st_.clear();
843 done_ = false;
844}
845
846} // namespace json
847} // namespace boost

Callers 2

conversion.hppFile · 0.45
serializeFunction · 0.45

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected