VirtualBox

source: vbox/trunk/src/libs/boost-1.37.0/boost/exception/detail/is_output_streamable.hpp@ 40734

最後變更 在這個檔案從40734是 16204,由 vboxsync 提交於 16 年 前

export the boost stuff required for Main

檔案大小: 1.0 KB
 
1//Copyright (c) 2006-2008 Emil Dotchevski and Reverge Studios, Inc.
2
3//Distributed under the Boost Software License, Version 1.0. (See accompanying
4//file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5
6#ifndef UUID_898984B4076411DD973EDFA055D89593
7#define UUID_898984B4076411DD973EDFA055D89593
8
9#include <ostream>
10
11namespace
12boost
13 {
14 namespace
15 to_string_detail
16 {
17 template <class T,class CharT,class Traits>
18 char operator<<( std::basic_ostream<CharT,Traits> &, T const & );
19
20 template <class T,class CharT,class Traits>
21 struct
22 is_output_streamable_impl
23 {
24 static std::basic_ostream<CharT,Traits> & f();
25 static T const & g();
26 enum e { value=1!=(sizeof(f()<<g())) };
27 };
28 }
29
30 template <class T, class CharT=char, class Traits=std::char_traits<CharT> >
31 struct
32 is_output_streamable
33 {
34 enum e { value=to_string_detail::is_output_streamable_impl<T,CharT,Traits>::value };
35 };
36 }
37
38#endif
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette