Original Post
If I want to know if a std::string object is empty or not would it be more efficient to use: It's probably a trivial difference, but I want to pick one to maintain a consistent coding style.
if(!string.empty())
{
...
}
or
if(string.size())
{
...
}