Random commentary about Machine Learning, BigData, Spark, Deep Learning, C++, STL, Boost, Perl, Python, Algorithms, Problem Solving and Web Search
Friday, October 9, 2015
Implementing the Singleton pattern
This pattern restricts the instantiation of a
class to one single object. In a single
thread environment the constructor is typically private and a static instance is initialized only once
by checking its nullness.