C++: Smarter Sorting Functions
Channel:
Subscribers:
2,650
Published on ● Video Link: https://www.youtube.com/watch?v=5sAt1NLNYOs
One small tip that is still very useful - if you want to sort a vector on one property, but on a tie sort on another, but on a tie sort on another, etc., there is this thing called std::tie that will allow you to write that whole thing in a one-liner. Fast and easy.
Other Videos By Bill Kerney
2023-11-09 | Acceleration Structures: Quadtrees/Octrees/KDtrees/BSPs |
2023-11-08 | Lab Time Week 14: Parsing Pokemon |
2023-11-07 | Ludology: Cartographers Game Analysis |
2023-11-06 | C++: Member Functions (Methods) and Constructors |
2023-11-03 | The Importance of Being Earnest with Documentation |
2023-11-02 | UE5: Finishing a Game |
2023-11-01 | Worked Solution: Billiard Ball Bounce |
2023-10-31 | Setting up our project |
2023-10-31 | UE5: Spooky Land Mine |
2023-10-30 | C++: Structs |
2023-10-30 | C++: Smarter Sorting Functions |
2023-10-26 | Dot Product and Cross Product |
2023-10-25 | Debugging with GDB |
2023-10-25 | UNIX Commands for 10/25/23 Lab |
2023-10-24 | Worked Solution: Making a Quake 1 Mod |
2023-10-24 | Brainstorming Session |
2023-10-24 | Waterfall, Agile, TDD |
2023-10-20 | We Do A Little Trolling |
2023-10-18 | Const Variables and Debugging C++ |
2023-10-17 | UE5: Niagara Effects and Systems |
2023-10-17 | Quick Introduction to Raylib |