dboo::odb::set_id
template<class T>
T* set_id (T* object, obj_id id);
void set_id (const obj_ref& object, obj_id id);
set_id( object, hexid )
Sets an object’s id.
- 1
Sets the object id for the specified object
- 2
Sets the object id for the object specified with obj_ref
Parameters
- object
A pointer or obj_ref to the object to generate an id for
- id
The new object id
Return value
(none)
Exceptions
Example