Boost C++ Libraries of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.

Function template imbue

boost::xpressive::imbue — Specify a regex traits or a std::locale.


template<typename Locale> unspecified imbue(Locale const & loc);


imbue() instructs the regex engine to use the specified traits or locale when matching the regex. The entire expression must use the same traits/locale. For instance, the following specifies a locale for use with a regex: std::locale loc; sregex rx = imbue(loc)(+digit);


The std::locale or regex traits object.

Copyright 2003, 2004 Eric Niebler