// Copyright (c) Glyn Matthews 2011, 2012. // 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) #ifndef __BOOST_NETWORK_URI_DIRECTIVES_INC__ # define __BOOST_NETWORK_URI_DIRECTIVES_INC__ # include namespace boost { namespace network { namespace uri { inline uri &operator << (uri &uri_, const uri &root_uri) { if (empty(uri_) && valid(root_uri)) { uri_.append(boost::begin(root_uri), boost::end(root_uri)); } return uri_; } template < class Directive > inline uri &operator << (uri &uri_, const Directive &directive) { directive(uri_); return uri_; } } // namespace uri } // namespace network } // namespace boost # include # include # include # include # include # include # include # include #endif // __BOOST_NETWORK_URI_DIRECTIVES_INC__