Quick Tip: Its Time to Avoid the Frustration of Single Return Types in C++
When designing a new API one of the things I put a lot of thought into is how the user will know if the API call was successful or not. std::tuple and std::tie are two useful C++ features that can help you return multiple values from a function.