Advanced C++ Topics, Tips and Pitfalls

Rating:
1 vote, average: 5.00 out of 51 vote, average: 5.00 out of 51 vote, average: 5.00 out of 51 vote, average: 5.00 out of 51 vote, average: 5.00 out of 5
Loading...
Please Log in or register to rate

Advanced C++ Topics, Tips and Pitfalls

BCK-307

The main goal of the course is to provide deep understanding of C++ internals – the look on some C++ features from the compiler point of view; how these features are implemented in compiler and why. We’ll discuss the cost of C++ features and the ways to decrease resources needed for application (memory, time), and we’ll present tips and pitfalls in C++ programming.

Target Audience

This course is for programmers who are experienced with C++ programming and Object Oriented approach. By the end of this course participants will have deep understanding with C++ internals.

Course Topics
  • What’s going in CTOR & DTOR
    – The look from Compiler point of view
    – Temporary objects
    – Why always to provide CTOR and DTOR
  • When to return by Reference and when by Value
    – Use reference everywhere it possible
    – Return by reference
  • Behind “inline” mechanism
    – What happens if compiler doesn’t succeed to INLINE function?
    – When really to use INLINE mechanism
    – Is it make sense to declare sometimes virtual function as inline?
  • Operators and Operator Overloading
    – Overloading of some specific operators
    – Conversion operator and it pitfalls
  • Operators New and Delete
    – Overloading
    – How to use overloaded NEW and DELETE to find memory leaks
    – Placement NEW operator
  • Templates
    – Template Internals
    – How to write efficient code using template mechanism
  • Exception Handler – www – what, when, why
    – Exception Handler in CTORs and DTORs
    – Uncaught Exceptions and recovery ( terminate, set_terminate functions)
  • Polymorphism
    – Do you really understand the mechanism?
    – When you don’t need  polymorphism ?
    – Polymorphism and multiple inheritance
  • Pointers to member-functions
    – How to declare and use
    – How to save a lot of code
  • Run Time Type Identification (RTTI)
  • STL – Standard Template Library effective usage
  • Class Design
    – CONST correctness
    – When to declare member-function as virtual and when not
    – Data-members: when private and when protected
  • C++ tips and pitfalls
    – CTOR & DTOR pitfalls
    – Inheritance pitfalls
    – Tips for good C++ programming
© Copyright - Skilit - Site by Dweb