Home
Barry's C++ Blog
Cancel

Quirks in Class Template Argument Deduction

Before C++17, template deduction [basically] worked in two situations: deduction function parameters in function templates and deducing auto for variables/return types in functions. There was no mechanism to deduce template parameters in class templates. The result of that was— whenever you used...

optional<T&> - Yes, we need it

Read it on Medium.

Should Span Be Regular

Read it on Medium.

Non-Ownership and Generic Programming and Regular types, oh my!

Read it on Medium.

Without form and void

Read it on Medium.

Just dropped in to see what condition my condition was in

Read it on Medium.

optional<T> in a possible C++20 future

Read it on Medium.

Chaining Comparisons: Seeking Information from the Audience

Read it on Medium.

optional<bool>: reference or constexpr?

Read it on Medium.

Implementing the spaceship operator for optional

Read it on Medium.