User profile: TwilightSpectre
| User info |
| User name: | TwilightSpectre |
| Old user name: | NT3 |
| Location: | Sydney, NSW, Australia |
| Bio: | A programmer guy. Enjoys randomly reading things, writing things, solving things, making problems, and all manner of various shenanigans. |
| Statistical data |
|---|
| Gender: | Male |
| Occupation: | Programmer |
| Skills: | C PHP C++ Perl Assembly Java Javascript Python Haskell |
| History |
| Joined: | |
| Number of posts: | 1392 |
| Latest posts: |
Visual Studio 2022 announced [quote=Ganado]This is totally breaking the every-other-odd-year pattern.[/quote]
Don't blame them, ...
Yet another take on "using namespace std;" Technically the result is unspecified; see https://timsong-cpp.github.io/cppwp/n4659/headers#4
[quot...
Unit testing with C++ I really like Catch2: https://github.com/catchorg/Catch2
Return type of generic function You can also just let [tt]Iter[/tt] be inferred.
[code]
template <typename ReturnType, typename Ite...
how to use a different type to find value in std::set You can use a transparent comparator, such as [tt]std::less<>[/tt]:
[code]
#include <iostream>
#incl...
|