MCPcopy Create free account
hub / github.com/USCiLab/cereal / ptr

Method ptr

include/cereal/access.hpp:201–204  ·  view source on GitHub ↗

Returns a raw pointer to the initialized underlying object ! This is mainly intended for use with passing an instance of a constructed object to cereal::base_class. It is strongly recommended to avoid using this function in any other circumstance. @return A raw pointer to the initialized type */

Source from the content-addressed store, hash-verified

199
200 @return A raw pointer to the initialized type */
201 T * ptr()
202 {
203 return operator->();
204 }
205
206 private:
207 template <class Ar, class TT> friend struct ::cereal::memory_detail::LoadAndConstructLoadWrapper;

Callers 2

load_and_constructMethod · 0.80
load_variant_implMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected