Quantcast
Channel: Bartek's coding blog
Viewing all articles
Browse latest Browse all 325

Const collection of unique_ptr, options and design choices

$
0
0

Today I have one use case for you: how to declare a const collection of unique pointers of polymorphic types? Can we use std::vector? or maybe std::array? What are the options here? What if we’d like to have such collection as a class member? Have a look in the article.

Read more...

Viewing all articles
Browse latest Browse all 325

Trending Articles