Spaceship Operator (Three Way Comparison) - C++ in 2021

3 years ago
39

C++20 added a new operator: the Spaceship (or Three Way Comparison) operator!

Follow along with this lesson to learn how to use this operator in its basic form. A future lesson will dive into supporting the new Three Way Comparison operator on your custom types.

Get Professional C++ by Marc Gregoire here: https://amzn.to/3eVMlaU

0:00 Intro
1:25 Get Started
8:20 Convenience Functions
11:45 Module Templating
___

Godot Dragonbones is a custom Godot engine build with the godot_dragonbones module that I am maintaining and distributing. It provides full-featured, 2D Skeletal animation support for the DragonBones API; a free, open source alternative to Spine: 2D Skeletal Animation.

PLEASE SUBSCRIBE!
https://cutt.ly/zdCef9v

JOIN OUR DISCORD:
https://discord.gg/bXMkFsg

DONATE HERE:
https://cutt.ly/zdCnvmj

GET GODOT DRAGONBONES HERE (Windows, Linux, Mac):
http://godotdragonbones.com

Godot-Dragonbones module included with this build of engine:
https://github.com/mauville-technologies/godot-dragonbones

If you're interested in using this in your projects but would like more guidance, leave a comment letting me know what you'd like me to explain next.

Loading comments...