MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / StringHolder

Class StringHolder

test/embind/embind_test.cpp:367–389  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

365}
366
367class StringHolder {
368public:
369 StringHolder(const std::string& s) : str_(s) {}
370
371 void set(const std::string& s) {
372 str_ = s;
373 }
374
375 std::string get() const {
376 return str_;
377 }
378
379 std::string& get_ref() {
380 return str_;
381 }
382
383 const std::string& get_const_ref() const {
384 return str_;
385 }
386
387private:
388 std::string str_;
389};
390
391class SharedPtrHolder {
392public:

Callers 1

VectorHolderMethod · 0.85

Calls

no outgoing calls

Tested by 1

VectorHolderMethod · 0.68