Click here to Skip to main content
15,844,673 members
Articles / Programming Languages / C++

C++ Empty Class and Function

Rate me:
Please Sign up or sign in to vote.
3.05/5 (7 votes)
3 May 2020CPOL2 min read 9.4K   46   2  
Demonstration of how empty class and function is used in C++
In this tip, I use a simple endian swap example to demonstrate the use of empty class and function in templates.


Daily Counts


Weekly Counts


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Written By
Software Developer (Senior)
Singapore Singapore
Shao Voon is from Singapore. His interest lies primarily in computer graphics, software optimization, concurrency, security, and Agile methodologies.

In recent years, he shifted focus to software safety research. His hobby is writing a free C++ DirectX photo slideshow application which can be viewed here.

Comments and Discussions