OSDN Git Service

memberwise_swap を追加
[gintenlib/gintenlib.git] / gintenlib / enable_if.hpp
1 #ifndef GINTENLIB_INCLUDED_ENABLE_IF_HPP_
2 #define GINTENLIB_INCLUDED_ENABLE_IF_HPP_
3
4 /*
5
6       <gintenlib/enable_if.hpp>
7
8   enable_if : boost::enable_if の using 宣言
9
10   宣言:
11     using boost::enable_if;
12     using boost::enable_if_c;
13     using boost::disable_if;
14     using boost::disable_if_c;
15     
16   機能:
17     単純に gintenlib 内で boost::enable_if を使う機会は多いので、
18     予め using 宣言しておけば、いちいち boost:: と指定してやる必要が無くて楽、だけのヘッダです。
19     あとは TR1 への対応をしやすいように、という意義もあります。
20     その場合は互換性が失われる可能性もあるので、やるとすればメジャーバージョンアップ時でしょうが。
21
22 */
23
24 #include <boost/utility/enable_if.hpp>
25
26 namespace gintenlib
27 {
28   using boost::enable_if;
29   using boost::enable_if_c;
30   using boost::disable_if;
31   using boost::disable_if_c;
32
33 }   // namespace gintenlib
34
35
36 #endif  // #ifndef GINTENLIB_INCLUDED_ENABLE_IF_HPP_