25 for (
size_t pos = 0;;) {
26 pos =
string.find(search, pos);
27 if (pos == std::string::npos)
break;
28 string.erase(pos, search.length());
35 std::unique_ptr<char, void (*)(void *)> res {
36 abi::__cxa_demangle(name.c_str(),
nullptr,
nullptr, &status), std::free };
48 template <
typename T>
static std::string
type_id() {
51 detail::clean_type_id(name);
#define PYBIND11_NAMESPACE
#define PYBIND11_NOINLINE
#define NAMESPACE_END(name)
void erase_all(std::string &string, const std::string &search)
Erase all occurrences of a substring.
Annotation for function names.
auto search(const T &set, const V &val) -> std::pair< bool, decltype(std::begin(detail::smart_deref(set)))>
A search function.
#define NAMESPACE_BEGIN(name)
static std::string type_id()
Return a string representation of a C++ type.