Mirror of the Loki library from Alexandrescu.
Find a file
aandrei 2ffd6b016f First blush
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@6 7ec92016-0320-0410-acc4-a06ded1c099a
2001-11-21 07:28:56 +00:00
AbstractFactory.h First blush 2001-11-21 07:28:56 +00:00
AssocVector.h First blush 2001-11-21 07:28:56 +00:00
EmptyType.h First blush 2001-11-21 07:28:56 +00:00
Factory.h First blush 2001-11-21 07:28:56 +00:00
Functor.h First blush 2001-11-21 07:28:56 +00:00
HierarchyGenerators.h First blush 2001-11-21 07:28:56 +00:00
main.cpp First blush 2001-11-21 07:28:56 +00:00
Mappings.h First blush 2001-11-21 07:28:56 +00:00
MultiMethods.h First blush 2001-11-21 07:28:56 +00:00
NullType.h First blush 2001-11-21 07:28:56 +00:00
readme.txt First blush 2001-11-21 07:28:56 +00:00
Singleton.cpp First blush 2001-11-21 07:28:56 +00:00
Singleton.h First blush 2001-11-21 07:28:56 +00:00
SmallObj.cpp First blush 2001-11-21 07:28:56 +00:00
SmallObj.h First blush 2001-11-21 07:28:56 +00:00
SmartPtr.h First blush 2001-11-21 07:28:56 +00:00
static_check.h First blush 2001-11-21 07:28:56 +00:00
Threads.h First blush 2001-11-21 07:28:56 +00:00
Tuple.h First blush 2001-11-21 07:28:56 +00:00
TypeInfo.h First blush 2001-11-21 07:28:56 +00:00
Typelist.h First blush 2001-11-21 07:28:56 +00:00
TypeManip.h First blush 2001-11-21 07:28:56 +00:00
TypeTraits.h First blush 2001-11-21 07:28:56 +00:00
Visitor.h First blush 2001-11-21 07:28:56 +00:00

Last update: February 19, 2001

Directions:

To use Loki, simply extract the files from the archive, give your compiler access to their path, and include them appropriately in your code via #include.

If you use the small object allocator directly or indirectly (through the Functor class) you must add SmallObj.cpp to your project/makefile.

If you use Singletons with longevity you must add Singleton.cpp to your project/makefile.

Compatibility:

Loki has been tested with Metrowerks CodeWarrior Pro 6 under Windows. CodeWarrior has a problem with the Conversion template (see TypeManip.h) and, though it compiles it, it doesn't provide correct results. Consequently, the DerivedToFront algorithm in Typelist.h does not function. This affects the static dispatcher in Multimethods.h. As a fix, you must order the types (putting the most derived ones in the front) when providing the typelist argument to StaticDispatcher.

More info:

http://moderncppdesign.com