I have seen some coding techniques that I am not familiar with, so I hope some of you can shed some light on them:
std::string variableA //what is the purpose of using std here?
//Can someone explain how this code actually works? I tried to name the methods and variables accordingly.
NamespaceA::ClassA::ClassA(const NamespaceA::ClassA& other) : variableB(other.variableB)
{
}
//Here is another one that confuses me. It is a method declaration.
bool operator()(const NamespaceA::ClassA* c1, const NamespaceA::ClassA* c2) const;
The last question I have: what does c_str() do?
std::string variableA //what is the purpose of using std here?
//Can someone explain how this code actually works? I tried to name the methods and variables accordingly.
NamespaceA::ClassA::ClassA(const NamespaceA::ClassA& other) : variableB(other.variableB)
{
}
//Here is another one that confuses me. It is a method declaration.
bool operator()(const NamespaceA::ClassA* c1, const NamespaceA::ClassA* c2) const;
The last question I have: what does c_str() do?