An open API service indexing awesome lists of open source software.

https://github.com/kokorinilya/cpp-course-exercises

Excercises for c++ course
https://github.com/kokorinilya/cpp-course-exercises

data-structures excercises itmo-university metaprogramming templates type-erasure

Last synced: about 1 month ago
JSON representation

Excercises for c++ course

Awesome Lists containing this project

README

          

# cpp-course-exercises
Excercises for c++ course

Including:
# any
1) any - my implementation of std::any or boost::any.

http://en.cppreference.com/w/cpp/utility/any

Implemented using void* with type_info (any_first) and polymorph classes (any_second)

# call_once_function

2) call_once_function - function, identical to std::function, that can store and call call_once functional objects (like objects, created by call_once_bind)

Implemented using Small Object Optimization (SOO). The data structure is fully reentrancy-safe

# optional

3) optional - my implementation of std::optional or boost::optional

http://en.cppreference.com/w/cpp/utility/optional

Stores objects in the optional, does't allocate memory for storing on heap.

# template_list

4) template-list - implementation of linked list, using c++-17 template metaprogramming. All functions are calculated in compile-time.