ViennaCL - The Vienna Computing Library  1.5.1
viennacl/meta/enable_if.hpp
Go to the documentation of this file.
00001 #ifndef VIENNACL_META_ENABLE_IF_HPP_
00002 #define VIENNACL_META_ENABLE_IF_HPP_
00003 
00004 /* =========================================================================
00005    Copyright (c) 2010-2014, Institute for Microelectronics,
00006                             Institute for Analysis and Scientific Computing,
00007                             TU Wien.
00008    Portions of this software are copyright by UChicago Argonne, LLC.
00009 
00010                             -----------------
00011                   ViennaCL - The Vienna Computing Library
00012                             -----------------
00013 
00014    Project Head:    Karl Rupp                   rupp@iue.tuwien.ac.at
00015 
00016    (A list of authors and contributors can be found in the PDF manual)
00017 
00018    License:         MIT (X11), see file LICENSE in the base directory
00019 ============================================================================= */
00020 
00025 namespace viennacl
00026 {
00028     template <bool b, class T = void>
00029     struct enable_if
00030     {
00031       typedef T   type;
00032     };
00033 
00035     template <class T>
00036     struct enable_if<false, T> {};
00039 } //namespace viennacl
00040 
00041 
00042 #endif