boost::xpressive::swap — Swaps the contents of two basic_regex objects.
template<typename BidiIter> void swap(basic_regex< BidiIter > & left, basic_regex< BidiIter > & right);
|Throws:||Will not throw.|
This is a shallow swap that does not do reference tracking. If you embed a basic_regex object by reference in another regular expression and then swap its contents with another basic_regex object, the change will not be visible to the enclosing regular expression. It is done this way to ensure that swap() cannot throw.
|Copyright © 2003, 2004 Eric Niebler|