/usr/include/boost/range/detail
NameSizeModeActions
any_iterator.hpp194670644editdlrm
any_iterator_buffer.hpp27360644editdlrm
any_iterator_interface.hpp100950644editdlrm
any_iterator_wrapper.hpp213590644editdlrm
collection_traits.hpp85050644editdlrm
collection_traits_detail.hpp144710644editdlrm
combine_cxx03.hpp23900644editdlrm
combine_cxx11.hpp10480644editdlrm
combine_no_rvalue.hpp24930644editdlrm
combine_rvalue.hpp11830644editdlrm
common.hpp66600644editdlrm
default_constructible_unary_fn.hpp20380644editdlrm
demote_iterator_traversal_tag.hpp54400644editdlrm
difference_type.hpp31620644editdlrm
empty.hpp31710644editdlrm
extract_optional_type.hpp20180644editdlrm
has_member_size.hpp15270644editdlrm
implementation_help.hpp31770644editdlrm
join_iterator.hpp109450644editdlrm
less.hpp4720644editdlrm
microsoft.hpp289280644editdlrm
misc_concept.hpp8220644editdlrm
msvc_has_iterator_workaround.hpp36120644editdlrm
range_return.hpp61820644editdlrm
safe_bool.hpp20670644editdlrm
sfinae.hpp26990644editdlrm
sizer.hpp9460644editdlrm
str_types.hpp8130644editdlrm
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 // #ifndef BOOST_RANGE_SAFE_BOOL_INCLUDED_HPP #define BOOST_RANGE_SAFE_BOOL_INCLUDED_HPP #include #include namespace boost { namespace range_detail { template 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