Searched defs:TemporaryChange (Results 1 - 1 of 1) sorted by relevance

/external/chromium_org/third_party/WebKit/Source/wtf/
H A DTemporaryChange.h33 // TemporaryChange<> is useful for setting a variable to a new value only within a
34 // particular scope. An TemporaryChange<> object changes a variable to its original
38 // This should be obvious, but note that an TemporaryChange<> instance should have a
40 // when the TemporaryChange<> object is destroyed.
43 class TemporaryChange { class in namespace:WTF
44 WTF_MAKE_NONCOPYABLE(TemporaryChange);
46 TemporaryChange(T& scopedVariable, T newValue) function in class:WTF::TemporaryChange
53 ~TemporaryChange()
66 using WTF::TemporaryChange;

Completed in 110 milliseconds