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.
Header hpx/util/calculate_fanout.hpp
¶
-
namespace
hpx
-
namespace
util
-
namespace
Header hpx/util/get_and_reset_value.hpp
¶
-
namespace
hpx
-
namespace
util
Functions
-
namespace
Header hpx/util/get_entry_as.hpp
¶
-
namespace
hpx
-
namespace
util
Functions
-
template<typename DestType, typename Config, typename std::enable_if<!std::is_same< DestType, std::string >::value, bool >::type = false>DestType hpx::util::get_entry_as(Config const & config, std::string const & key, DestType const & dflt)
-
-
namespace
Header hpx/util/insert_checked.hpp
¶
-
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
Header hpx/util/ios_flags_saver.hpp
¶
-
namespace
hpx
-
namespace
util
-
class
ios_flags_saver
¶ - #include <ios_flags_saver.hpp>
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
Header hpx/util/manage_config.hpp
¶
Header hpx/util/regex_from_pattern.hpp
¶
-
namespace
hpx
-
namespace
util
Functions
-
std::string
regex_from_pattern
(std::string const &pattern, error_code &ec = throws)¶
-
std::string
-
namespace
Header hpx/util/sed_transform.hpp
¶
-
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