dboo::odb::mk_id
template<class T>
T* mk_id (T* object);
void mk_id (const obj_ref& object);
mk_id( object )
Assigns a new id to an object.
- 1
Generates a new object id for the specified object
- 2
Generates a new object id for the object specified with obj_ref
Parameters
- object
A pointer or obj_ref to the object to generate an id for
Return value
A pointer to the object passed in
Exceptions
(none)
Example