1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2024-12-17 23:23:43 +02:00
comprehensive-rust/third_party/cxx/book/snippets.cc
Nicole L ca61ca4f57
Add CXX tutorial (#1392)
Add a number of slides that cover most of CXX's functionality and
demonstrate how it can be used.

Fixes #823.

---------

Co-authored-by: Martin Geisler <mgeisler@google.com>
2023-11-06 16:34:29 -08:00

12 lines
284 B
C++

// This file contains various code snippets taken from the CXX book and
// tutorial. Some have been modified to fit the course better.
// ANCHOR: shared_enums_cpp
enum class Suit : uint8_t {
Clubs = 0,
Diamonds = 1,
Hearts = 2,
Spades = 3,
};
// ANCHOR_END: shared_enums_cpp