epoc32/include/stdapis/boost/none.hpp
branchSymbian2
changeset 2 2fe1408b6811
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/epoc32/include/stdapis/boost/none.hpp	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -0,0 +1,43 @@
     1.4 +// Copyright (C) 2003, Fernando Luis Cacciola Carballal.
     1.5 +// Copyright (C) 2007, Anthony Williams
     1.6 +// Copyright (C) 2007, Steven Watanabe, Richard Smith
     1.7 +//
     1.8 +// Distributed under the Boost Software License, Version 1.0.
     1.9 +// (See accompanying file LICENSE_1_0.txt or copy at
    1.10 +// http://www.boost.org/LICENSE_1_0.txt)
    1.11 +//
    1.12 +// See http://www.boost.org/lib/optional/ for documentation.
    1.13 +//
    1.14 +// You are welcome to contact the author at:
    1.15 +// fernando.cacciola@gmail.com
    1.16 +//
    1.17 +#ifndef BOOST_NONE_17SEP2003_HPP
    1.18 +#define BOOST_NONE_17SEP2003_HPP
    1.19 +
    1.20 +namespace boost
    1.21 +{
    1.22 +  namespace detail
    1.23 +  {
    1.24 +    class none_helper;
    1.25 +  }
    1.26 +
    1.27 +  inline void none(detail::none_helper);
    1.28 +
    1.29 +  namespace detail
    1.30 +  {
    1.31 +    class none_helper
    1.32 +    {
    1.33 +    private:
    1.34 +      
    1.35 +      none_helper( none_helper const& ) {}
    1.36 +      
    1.37 +      friend void boost::none(none_helper);
    1.38 +    };
    1.39 +  }
    1.40 +
    1.41 +  typedef void (*none_t)(detail::none_helper);
    1.42 +
    1.43 +  inline void none(detail::none_helper) {}
    1.44 +}
    1.45 +
    1.46 +#endif