Boost logo

Boost :

From: Stephen C. Gilardi (squeegee_at_[hidden])
Date: 2000-02-06 13:13:19

Perhaps names more inline with the intention of temporarily setting a
value and being assured that it will be restored at the end of the
block would be"

"scoped_push_value" or

We are treating this like a temporary push to the top of a "stack" of
values for the given variable.

How does this sound for readability:

     block_push_value push(mDisableUpdates, true);
     block_push_value push2(mEnableLogging, true);


>More name suggestions:
> assigner
> auto_assigner
> safe_assigner
> value_changer
> value_setter
> auto_value_changer
> auto_value_setter
> auto_changer
> safe_changer
> -- Darin

Boost list run by bdawes at, gregod at, cpdaniel at, john at