Jump to ratings and reviews
Rate this book

Advanced C++ FAQs: Volume 2 : Generic Programming

Rate this book
This book is sequel to the first volume Advanced C++ FAQs : Volume 1 : Fundamentals. It assumes that the reader is aware of the basics of C++98 and C++03 and wants to expand her horizon to latest and greatest in the present and future of C++, including C++11 and C++1y(aka C++14). It contains selected generic programming problems with detailed solutions to all of these which will help the reader to hone her skills to solve a particular problem. The problems are marked on a scale of one(*)(simplest) to five stars(*****)(hardest).






C++14
1.1 variable templates

1.2 Constexpr static data members of class templates

1.3 constexpr function templates

1.4 variable templates in action

1.5 static data member template

1.6 specialization of variable template

1.7 default argument and specialization of variable template
1.8 lambda and variable template

1.9 variable templates variables vary

1.10 auto variable templates

1.11 valid specialization but error ?

1.12 variable templates and lambda revisited

1.13 Incremental improvement to integral constant

1.14 is same musings

1.15 auto variable template and generic lambda

1.16 constexpr member functions and implicit const

1.17 constexpr constructor and initialization

...

1.23 deprecated attribute

1.24 Member initializers and aggregate class

1.25 Member initializers and aggregate array

1.26 Data Member initializers

1.27 time duration literals

1.28 Expressing pi multiplication

1.29 Compile Time binary Literal Operator

1.30 Square Literal Operator

1.31 Type Transformation Aliases

1.32 unique ptr vs make unique as function argument

1.33 make unique as perfect forwarding guy

...

1.37 make unique and default initialization

1.38 make unique and array T[n]

1.39 make unique and array T[]

1.40 make unique and default initialization with T[]

1.41 Extend make unique : Support list initialization T[]

1.42 Extend make unique : Value Initialize T[]

1.43 Extend make unique : T[N]

1.44 allocate unique

1.45 Compile-time integer sequences

1.46 Simplified Creation of std::integer sequence

1.47 std::index sequence

1.48 Custom Sequence : Addition

1.49 Custom Sequence : Multiply

1.50 Custom Sequence : Split

1.51 Extract from tuple

1.52 convert std::array to std::tuple

1.53 Piecewise construction of std::pair

1.54 Compile Time Integer Sequence Simplified

1.55 sfinae and represent type of function

1.56 metafunction : check presence of type member

1.57 std::common type and sfinae





Foundation
2.1 private cast

2.2 Value Type Deduction Framework

...

2.

261 pages, Kindle Edition

First published June 16, 2014

2 people want to read

About the author

Chandra Shekhar Kumar

43 books1 follower

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
3 (100%)
4 stars
0 (0%)
3 stars
0 (0%)
2 stars
0 (0%)
1 star
0 (0%)
No one has reviewed this book yet.

Can't find what you're looking for?

Get help and learn more about the design.