HyperspaceExplorer 0.7.1
|
The Loki library by Andrei Alexandrescu. More...
Classes | |
struct | CreateUsingNew |
Implementation of the CreationPolicy used by SingletonHolder Creates objects using a straight call to the new operator. More... | |
struct | CreateUsing |
Implementation of the CreationPolicy used by SingletonHolder Creates objects using a custom allocater. Usage: e.g. CreateUsing<std::allocator>::Allocator. More... | |
struct | CreateUsingMalloc |
Implementation of the CreationPolicy used by SingletonHolder Creates objects using a call to std::malloc, followed by a call to the placement new operator. More... | |
struct | CreateStatic |
Implementation of the CreationPolicy used by SingletonHolder Creates an object in static memory Implementation is slightly nonportable because it uses the MaxAlign trick (an union of all types to ensure proper memory alignment). This trick is nonportable in theory but highly portable in practice. More... | |
class | SingletonHolder |
Provides Singleton amenities for a type T To protect that type from spurious instantiations, you have to protect it yourself. More... | |
class | Singleton |
Convenience template to implement a getter function for a singleton object. Often needed in a shared library which hosts singletons. More... |
The Loki library by Andrei Alexandrescu.
Copyright (c) 2001 by Andrei Alexandrescu
This code accompanies the book:
Alexandrescu, Andrei. "Modern C++ Design: Generic Programming and Design Patterns Applied". Copyright (c) 2001. Addison-Wesley.
Permission to use, copy, modify, distribute and sell this software for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation.
The author or Addison-Wesley Longman make no representations about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty.