Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dmlc/dmlc-core
/ DeclareField
Method
DeclareField
include/dmlc/json.h:321–323 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
319
*/
320
template<typename T>
321
inline void DeclareField(const std::string &key, T *addr) {
322
DeclareFieldInternal(key, addr, false);
323
}
324
/*!
325
* \brief Declare optional field of type T
326
* \param key the key of the of field.
Callers
1
Load
Method · 0.80
Calls
no outgoing calls
Tested by
1
Load
Method · 0.64