util¶
The contents of this module can be included with the header
hpx/modules/util.hpp. These headers may be used by user-code but are not
guaranteed stable (neither header location nor contents). You are using these at
your own risk. If you wish to use non-public functionality from a module we
strongly suggest only including the module header hpx/modules/util.hpp, not
the particular header in which the functionality you would like to use is
defined. See Public API for a list of names that are part of the public
HPX API.
- 
namespace hpx
- 
namespace util
 
- 
namespace 
- 
namespace hpx
- 
namespace util
- Functions 
 
- 
namespace 
- 
namespace hpx
- 
namespace util
 
- 
namespace 
- 
namespace hpx
- 
namespace util
- Functions - 
template<typename Iterator>
 boolinsert_checked(std::pair<Iterator, bool> const &r)¶
- Helper function for writing predicates that test whether an std::map insertion succeeded. This inline template function negates the need to explicitly write the sometimes lengthy std::pair<Iterator, bool> type. - Return
- This function returns r.second. 
- Parameters
- r: [in] The return value of a std::map insert operation.
 
 
 - 
template<typename Iterator>
 boolinsert_checked(std::pair<Iterator, bool> const &r, Iterator &it)¶
- Helper function for writing predicates that test whether an std::map insertion succeeded. This inline template function negates the need to explicitly write the sometimes lengthy std::pair<Iterator, bool> type. - Return
- This function returns r.second. 
- Parameters
- r: [in] The return value of a std::map insert operation.
- r: [out] A reference to an Iterator, which is set to r.first.
 
 
 
- 
template<typename 
 
- 
namespace 
- 
namespace hpx
- 
namespace util
- 
class ios_flags_saver¶
- 
Public Functions - 
ios_flags_saver(state_type &s)¶
 - 
ios_flags_saver(state_type &s, aspect_type const &a)¶
 - 
~ios_flags_saver()¶
 - 
ios_flags_saver(ios_flags_saver const&)¶
 - 
ios_flags_saver &operator=(ios_flags_saver const&)¶
 - 
void restore()¶
 
- 
 
- 
class 
 
- 
namespace 
- 
namespace hpx
- 
namespace hpx
- 
namespace util
- Functions - 
std::string regex_from_pattern(std::string const &pattern, error_code &ec = throws)¶
 
- 
std::string 
 
- 
namespace 
- 
namespace hpx
- 
namespace util
- Functions - 
bool parse_sed_expression(std::string const &input, std::string &search, std::string &replace)¶
- Parse a sed command. - Return
- true if the parsing was successful, false otherwise. 
- Note
- Currently, only supports search and replace syntax (s/search/replace/) 
- Parameters
- input: [in] The content to parse.
- search: [out] If the parsing is successful, this string is set to the search expression.
- search: [out] If the parsing is successful, this string is set to the replace expression.
 
 
 - 
struct sed_transform¶
- #include <sed_transform.hpp>An unary function object which applies a sed command to its subject and returns the resulting string. - Note
- Currently, only supports search and replace syntax (s/search/replace/) 
 
 
- 
bool 
 
- 
namespace