Invoke a manipulator on each attribute of a sequence.
Synopsis
Declared in <bdlat_sequencefunctions.h>
template<
class TYPE,
class MANIPULATOR>
int
manipulateAttributes(
TYPE* object,
MANIPULATOR& manipulator);
Description
Invoke the specified manipulator sequentially on the address of each (modifiable) attribute of the specified object, supplying manipulator with the corresponding attribute information structure until such invocation returns non‐zero value. The supplied manipulator must be a callable type that can be called as if it had the following signature: ` template <class t_INFO> int manipulator(ATTRIBUTE_TYPE *attribute, const t_INFO& info); ` Return the value from the last invocation of manipulator (i.e., the invocation that terminated the sequence).
Return Value
value from the last invocation of manipulator
Parameters
Name |
Description |
object |
sequence whose attributes are manipulated |
manipulator |
callable invoked with each attribute and its info |
Created with MrDocs