Lines Matching defs:string
24 inline void erase_all(std::string &string, const std::string &search) {
26 pos = string.find(search, pos);
27 if (pos == std::string::npos) break;
28 string.erase(pos, search.length());
32 PYBIND11_NOINLINE inline void clean_type_id(std::string &name) {
48 /// Return a string representation of a C++ type
49 template <typename T> static std::string type_id() {
50 std::string name(typeid(T).name());