Skip to primary content
Skip to secondary content

Advanced C++

C++ Tutorials on Libraries, Tools, and Techniques

Advanced C++

Main menu

  • Libraries
    • Standard Template Library
    • Boost Library
  • Tools
    • Visual Studio
  • Techniques
  • Design
    • Theory

Tag Archives: template

Introduction to C++ Template Functions

Posted on December 10, 2014 by Jeff Benshetler
Reply

Overview C++ provides two major mechanisms for code reuse: inheritance and templates. Templates can become complex so we are going to use function templates as a gentle introduction. Generally speaking, a function template applies the same algorithm to different data … Continue reading →

Posted in C++03, Language Features | Tagged c++, specialization, template, template function | Leave a reply

Overloading Using Non-type Template Parameters

Posted on May 9, 2012 by Jeff Benshetler
Reply

Consider the following situation: you have data to process that naturally uses the same container for storage yet needs to be processed differently based on the data "type". For example, say you are processing digital audio data and that data … Continue reading →

Posted in Techniques | Tagged c++, crtp, inheritance, pcm, polymorphism, template | Leave a reply

Recent Posts

  • Introduction to C++ Template Functions
  • C++ Threads Using Boost in 5 Minutes
  • Oh No! Big-O
  • Lazy Evaluation Makes for Smart map<>
  • Function Pointers and Member Function Pointers

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Proudly powered by WordPress