Modern-CPP-Programming/README.md

188 lines
6.5 KiB
Markdown
Raw Normal View History

2019-03-04 11:34:32 +01:00
# Modern C++ Programming #
## C++11/C++14/C++17 ##
2018-03-08 12:04:09 +01:00
2019-03-04 11:34:32 +01:00
Open access C++ course, University of Verona (UNIVR), Italy
2018-03-09 19:39:45 +01:00
2018-03-10 11:57:22 +01:00
[Short list of C++ online compilers](https://rawgit.com/FedericoUnivr/Modern-CPP-Programming/master/html/OnlineCompiler.html)
2018-03-08 12:04:09 +01:00
## TOPICS ##
2019-03-04 11:29:53 +01:00
[**1. Introduction**](https://github.com/FedericoUnivr/Modern-CPP-Programming/blob/master/01.Introduction.pdf)
2018-03-08 12:04:09 +01:00
2019-03-04 11:29:53 +01:00
* A Little History of C/C++ Programming Languages
2018-03-08 12:04:09 +01:00
* C++ Philosophy
2019-03-04 11:29:53 +01:00
* Why C++?
* Course References
2018-03-08 12:04:09 +01:00
2019-03-04 11:29:53 +01:00
[**2. Basic Concepts I**](https://github.com/FedericoUnivr/Modern-CPP-Programming/blob/master/02.Basic_Concepts_I.pdf)
2018-03-08 12:04:09 +01:00
* Hello World
* C++ Primitive Types
2019-03-04 11:29:53 +01:00
* auto and decltype
* Floating-point Arithmetic
* (Strongly Typed) Enumerators
* Union and Bitfield
2018-03-08 12:04:09 +01:00
* Math Operators
* Statement and Control Flow
2019-03-04 11:29:53 +01:00
[**3. Basic Concepts II**](https://github.com/FedericoUnivr/Modern-CPP-Programming/blob/master/03.Basic_Concepts_II.pdf)
2018-03-08 12:04:09 +01:00
* Memory Management: Heap and Stack
* Pointers and References
* sizeof Operator
2019-03-04 11:29:53 +01:00
* const / constexpr
* Explicit Type Conversion (Cast)
[**4. Basic Concepts III**](https://github.com/FedericoUnivr/Modern-CPP-Programming/blob/master/04.Basic_Concepts_III.pdf)
2018-03-08 12:04:09 +01:00
* Declaration and Definition
* Functions
* Preprocessing
2019-03-04 11:29:53 +01:00
[**5. Utilities**](https://github.com/FedericoUnivr/Modern-CPP-Programming/blob/master/05.Utilities.pdf)
2018-03-08 12:04:09 +01:00
2019-03-04 11:29:53 +01:00
* I/O Stream
* Filesystem Library
* Math Library
2018-03-08 12:04:09 +01:00
* Algorithm Library
2019-03-04 11:29:53 +01:00
* String and String View
2018-03-08 12:04:09 +01:00
* Random Numbers
* Time Measuring
2019-03-04 11:29:53 +01:00
[**6. C++ Object Oriented Programming I**](https://github.com/FedericoUnivr/Modern-CPP-Programming/blob/master/06.Object_Oriented_I.pdf)
* C++ Classes and Hierarchy
* Constructor
* Copy Construcor
* Destructor
* Class Keyword: this, static, const, mutable, using, friend, delete
[**7. C++ Object Oriented Programming II**](https://github.com/FedericoUnivr/Modern-CPP-Programming/blob/master/07.Object_Oriented_II.pdf)
2018-03-08 12:04:09 +01:00
* Polymorphism
2019-03-04 11:29:53 +01:00
* Keyword: virtual, override, final
* Operator overloading: <<, (), =
* Special Object: Aggregate, Trivial class, Standard layout, POD
2018-03-08 12:04:09 +01:00
2019-03-04 11:29:53 +01:00
[**8. C++ Templates and Meta-programming I**](https://github.com/FedericoUnivr/Modern-CPP-Programming/blob/master/08.Templates_I.pdf)
2018-03-08 12:04:09 +01:00
* Function Templates
* Type Deduction
2019-03-04 11:29:53 +01:00
* Compile-Time Utilities: static_assert, decltype, declval, using
2018-03-08 12:04:09 +01:00
* Type Traits
* Template Parameters
2019-03-04 11:29:53 +01:00
[**9. C++ Templates and Meta-programming II**](https://github.com/FedericoUnivr/Modern-CPP-Programming/blob/master/09.Templates_II.pdf)
2018-03-08 12:04:09 +01:00
* Class Templates
* Template Meta-Programming
* SFINAE
* Variadic Template
* STD Template Utility
2019-03-04 11:29:53 +01:00
[**10. Containers, Iterators, and Algorithms**](https://github.com/FedericoUnivr/Modern-CPP-Programming/blob/master/10.Iterators_Containers_Alg.pdf)
2018-03-08 12:04:09 +01:00
* Containers and Iterators
2019-03-04 11:29:53 +01:00
* Sequence Containers: array, vector, list, deque, forward_list
* Associative Containers: set, map
* Container Adaptors: stack, queue, priority_queue
2018-03-08 12:04:09 +01:00
* Implement a Custom Iterator
* Iterator Utility Methods
* Algorithms Library
* Lambda Expressions
2019-03-04 11:29:53 +01:00
[**11. Translation Units**](https://github.com/FedericoUnivr/Modern-CPP-Programming/blob/master/11.Translation_Units.pdf)
2018-03-08 12:04:09 +01:00
2019-03-04 11:29:53 +01:00
* Basic concepts, linkage, scope
2018-03-08 12:04:09 +01:00
* Variables Storage
2019-03-04 11:29:53 +01:00
* Dealing with Multiple Files and Templates
* #include Issues
2018-03-08 12:04:09 +01:00
* Namespace
2019-03-04 11:29:53 +01:00
* Libraries
2018-03-08 12:04:09 +01:00
2019-03-04 11:29:53 +01:00
[**12. Code Conventions**](https://github.com/FedericoUnivr/Modern-CPP-Programming/blob/master/12.Code_Convention.pdf)
* Coding Style
* Naming and formatting
* Maintainability and Documentation
* C++ Guidelines
2018-03-08 12:04:09 +01:00
2019-03-04 11:29:53 +01:00
[**13. Debugging and Tools**](https://github.com/FedericoUnivr/Modern-CPP-Programming/blob/master/13.Debugging_Tools.pdf)
* Debugging: Assertion, execution, memory, sanitizers
2018-03-08 12:04:09 +01:00
* CMake
2019-03-04 11:29:53 +01:00
* Code Checking and Analysis: warnings and static analyzers
2018-03-08 12:04:09 +01:00
* Code Quality (Linter)
* Code Testing
* Code Commenting (Doxygen)
2019-03-04 11:29:53 +01:00
* Code Statistics: lines, cyclomatic complexity
* Other Tools: formating, code explorer
2018-03-08 12:04:09 +01:00
2019-03-04 11:29:53 +01:00
[**14. Advanced Topics**](https://github.com/FedericoUnivr/Modern-CPP-Programming/blob/master/14.Advanced_Topics.pdf)
2018-03-08 12:04:09 +01:00
* Move Semantic
2019-03-04 11:29:53 +01:00
* Type deduction
* C++ Idioms: rule of three/five, singleton, PILP, CRTP
2018-03-08 12:04:09 +01:00
* Smart Pointers
* Concurrency
2019-03-04 11:29:53 +01:00
[**15. Optimization**](https://github.com/FedericoUnivr/Modern-CPP-Programming/blob/master/15.Optimization.pdf)
(ongoing)
* Concepts: optimization cycles, complexity, performane bounds
* I/O Operations
* Memory Locality and Memory Access Patterns
* Arithmetic
* Control Flow
* Functions
* C++ Objects
* Compiler Optimizations
* Libraries and Data Structures
* Profiling
* Parallel Computing
* Compile Time
2018-03-08 12:04:09 +01:00
### Reporting bugs and contributing ###
If you find any typos please report them by using the repository
2019-03-04 11:29:53 +01:00
(**issues** panel).
2018-03-08 12:04:09 +01:00
We are also ready to engage in improving and extending the course material.
## Author ##
2019-03-04 11:29:53 +01:00
* `Federico Busato`, Dept. of Computer Science, University of Verona (Italy) [federico.busato@univr.it](mailto:federico.busato@univr.it),
now Nvidia Corporation ([fbusato@nvidia.com](mailto:fbusato@nvidia.com))
2018-03-15 10:44:08 +01:00
* `Alessandro Danese`, Dept. of Computer Science, University of Verona (Italy) [alessandro.danese@univr.it](mailto:alessandro.danese@univr.it)
2018-03-08 12:04:09 +01:00
## License ##
> BSD 3-Clause License
>
2019-03-04 11:29:53 +01:00
> Copyright (c) 2019, Modern C++ Programming
2018-03-08 12:04:09 +01:00
> All rights reserved.
>
> Redistribution and use in source and binary forms, with or without
> modification, are permitted provided that the following conditions are met:
>
> * Redistributions of source code must retain the above copyright notice, this
> list of conditions and the following disclaimer.
>
> * Redistributions in binary form must reproduce the above copyright notice,
> this list of conditions and the following disclaimer in the documentation
> and/or other materials provided with the distribution.
>
> * Neither the name of the copyright holder nor the names of its
> contributors may be used to endorse or promote products derived from
> this software without specific prior written permission.
>
> THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
> AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
> IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
> DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
> FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
> DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
> SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
> CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
> OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
> OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.