MCPcopy Create free account
hub / github.com/dmlc/dmlc-core / DeclareOptionalField

Method DeclareOptionalField

include/dmlc/json.h:331–333  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

329 */
330 template<typename T>
331 inline void DeclareOptionalField(const std::string &key, T *addr) {
332 DeclareFieldInternal(key, addr, true);
333 }
334 /*!
335 * \brief Read in all the declared fields.
336 * \param reader the JSONReader to read the json.

Callers 1

LoadMethod · 0.80

Calls

no outgoing calls

Tested by 1

LoadMethod · 0.64