OKlibrary  0.2.1.6
LibraryBasics_Testobjects.hpp
Go to the documentation of this file.
00001 // Oliver Kullmann, 25.5.2005 (Swansea)
00002 /* Copyright 2005 - 2007 Oliver Kullmann
00003 This file is part of the OKlibrary. OKlibrary is free software; you can redistribute
00004 it and/or modify it under the terms of the GNU General Public License as published by
00005 the Free Software Foundation and included in this library; either version 3 of the
00006 License, or any later version. */
00007 
00008 #ifndef LIBRARYBASICSTESTOBJECTS_nnttrqr367
00009 #define LIBRARYBASICSTESTOBJECTS_nnttrqr367
00010 
00011 #include <OKlib/Concepts/LibraryBasics.hpp>
00012 #include <OKlib/Concepts/LibraryBasics_Tests.hpp>
00013 
00014 namespace OKlib {
00015 
00016   namespace Concepts {
00017 
00018       OKLIB_BASIC_CONCEPT_TEST_TAG(WithConceptTag)
00019       OKLIB_BASIC_CONCEPT_TEST_ARCHETYPE(WithConceptTag)
00020 
00021       OKLIB_BASIC_CONCEPT_TEST_TAG(BasicRequirements)
00022       OKLIB_BASIC_CONCEPT_TEST_ARCHETYPE(BasicRequirements)    
00023 
00024     namespace Macro_tests {
00025 
00026       template <typename>
00027       struct Test_OKLIB_MODELS_CONCEPT {
00028         struct c : virtual ConceptsBase_tag {};
00029         struct test {
00030           typedef c concept_tag;
00031         };
00032         void f() {
00033           OKLIB_MODELS_CONCEPT_REQUIRES(test, WithConceptTag);
00034           OKLIB_MODELS_CONCEPT_TAG(test, WithConceptTag);
00035         }
00036       };
00037       
00038     }
00039 
00040   }
00041 
00042 }
00043 
00044 #endif