Reusable Code, Reusable Data Structures - Sebastian Theophil - CppCon 2024

  Рет қаралды 3,942

CppCon

CppCon

Күн бұрын

Пікірлер: 7
@Roibarkan
@Roibarkan 15 күн бұрын
16:28 I think the “command pattern” is typically associated with objects that have one main/primary member-function (e.g. execute()). I think I might consider Sebastians example as “policy” (a-la policy based design) or strategy
@Roibarkan
@Roibarkan 15 күн бұрын
19:36 [slide 33] I wonder what might be the value of inheriting from the template argument vs. storing an instance of the template argument as a member variable. Commonly inheritance implies the is-a relationship (Liskov substitution) which I don’t think is the case here
@terragame5836
@terragame5836 15 күн бұрын
Private inheritance, I'd argue, may generally be seen as just a more convenient form of embedding the object as a field. The resulting subclass cannot be used as an instance of the base class, except internally by its own methods.
@Roibarkan
@Roibarkan 15 күн бұрын
@@terragame5836 thanks. Apart from "tricks" like the empty-base-optimization - I don't see std::vector inheriting from its allocator, std::map inheriting from its comparator or std::views::filter_view inheriting from its base view. Maybe there are motivating examples I'm not aware of
@Voy2378
@Voy2378 11 күн бұрын
@@Roibarkan filter_view inherits from a base class class filter_view : public ranges::view_interface or you meant something else ?
@Roibarkan
@Roibarkan 15 күн бұрын
23:30 Sean Parent’s talk: kzbin.info/www/bejne/h3jGh4uderuAgMk
@stumpybumpo
@stumpybumpo 15 күн бұрын
Thanks!
So You Think You Can Hash - Victor Ciura - CppCon 2024
59:08
Вопрос Ребром - Джиган
43:52
Gazgolder
Рет қаралды 3,8 МЛН
C++ Weekly - Ep 460 - Why is GCC Better Than Clang?
17:31
C++ Weekly With Jason Turner
Рет қаралды 15 М.
Keynote: Advent of Code, Behind the Scenes - Eric Wastl
46:01
Herb Sutter - Peering forward  C++’s next decade
59:59
code::dive conference
Рет қаралды 3,7 М.