/
usr
/
include
/
boost
/
range
/
detail
/
/usr/include/boost/range/detail
mkdir
upload
Name
Size
Mode
Actions
any_iterator.hpp
19467
0644
edit
dl
rm
any_iterator_buffer.hpp
2736
0644
edit
dl
rm
any_iterator_interface.hpp
10095
0644
edit
dl
rm
any_iterator_wrapper.hpp
21359
0644
edit
dl
rm
collection_traits.hpp
8505
0644
edit
dl
rm
collection_traits_detail.hpp
14471
0644
edit
dl
rm
combine_cxx03.hpp
2390
0644
edit
dl
rm
combine_cxx11.hpp
1048
0644
edit
dl
rm
combine_no_rvalue.hpp
2493
0644
edit
dl
rm
combine_rvalue.hpp
1183
0644
edit
dl
rm
common.hpp
6660
0644
edit
dl
rm
default_constructible_unary_fn.hpp
2038
0644
edit
dl
rm
demote_iterator_traversal_tag.hpp
5440
0644
edit
dl
rm
difference_type.hpp
3162
0644
edit
dl
rm
empty.hpp
3171
0644
edit
dl
rm
extract_optional_type.hpp
2018
0644
edit
dl
rm
has_member_size.hpp
1527
0644
edit
dl
rm
implementation_help.hpp
3177
0644
edit
dl
rm
join_iterator.hpp
10945
0644
edit
dl
rm
less.hpp
472
0644
edit
dl
rm
microsoft.hpp
28928
0644
edit
dl
rm
misc_concept.hpp
822
0644
edit
dl
rm
msvc_has_iterator_workaround.hpp
3612
0644
edit
dl
rm
range_return.hpp
6182
0644
edit
dl
rm
safe_bool.hpp
2067
0644
edit
dl
rm
sfinae.hpp
2699
0644
edit
dl
rm
sizer.hpp
946
0644
edit
dl
rm
str_types.hpp
813
0644
edit
dl
rm
Edit:
/usr/include/boost/range/detail/safe_bool.hpp
(2067B)
// This header intentionally has no include guards. // // Copyright (c) 2010 Neil Groves // Distributed under the Boost Software License, Version 1.0. // See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt // // This code utilises the experience gained during the evolution of // <boost/smart_ptr/operator_bool.hpp> #ifndef BOOST_RANGE_SAFE_BOOL_INCLUDED_HPP #define BOOST_RANGE_SAFE_BOOL_INCLUDED_HPP #include <boost/config.hpp> #include <boost/range/config.hpp> namespace boost { namespace range_detail { template<class DataMemberPtr> class safe_bool { public: typedef safe_bool this_type; #if (defined(__SUNPRO_CC) && BOOST_WORKAROUND(__SUNPRO_CC, < 0x570)) || defined(__CINT_) typedef bool unspecified_bool_type; static unspecified_bool_type to_unspecified_bool(const bool x, DataMemberPtr) { return x; } #elif defined(_MANAGED) static void unspecified_bool(this_type***) { } typedef void(*unspecified_bool_type)(this_type***); static unspecified_bool_type to_unspecified_bool(const bool x, DataMemberPtr) { return x ? unspecified_bool : 0; } #elif \ ( defined(__MWERKS__) && BOOST_WORKAROUND(__MWERKS__, < 0x3200) ) || \ ( defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__ < 304) ) || \ ( defined(__SUNPRO_CC) && BOOST_WORKAROUND(__SUNPRO_CC, <= 0x590) ) typedef bool (this_type::*unspecified_bool_type)() const; static unspecified_bool_type to_unspecified_bool(const bool x, DataMemberPtr) { return x ? &this_type::detail_safe_bool_member_fn : 0; } private: bool detail_safe_bool_member_fn() const { return false; } #else typedef DataMemberPtr unspecified_bool_type; static unspecified_bool_type to_unspecified_bool(const bool x, DataMemberPtr p) { return x ? p : 0; } #endif private: safe_bool(); safe_bool(const safe_bool&); void operator=(const safe_bool&); ~safe_bool(); }; } // namespace range_detail } // namespace boost #endif // include guard
Save
cmd:
run