MCPcopy Create free account
hub / github.com/BirolLab/abyss / const_string

Method const_string

Common/ConstString.h:48–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46class const_string : public cstring {
47 public:
48 const_string(const std::string& s)
49 : cstring(strcpy(new char[s.size() + 1], s.c_str())) { }
50
51#if __GXX_EXPERIMENTAL_CXX0X__
52 const_string(const_string&& s) : cstring(s.m_p) { s.m_p = NULL; }

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected