/* Copyright 2016-2017 Joaquin M Lopez Munoz. * 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) * * See http://www.boost.org/libs/poly_collection for library home page. */ #ifndef BOOST_POLY_COLLECTION_FUNCTION_COLLECTION_HPP #define BOOST_POLY_COLLECTION_FUNCTION_COLLECTION_HPP #if defined(_MSC_VER) #pragma once #endif #include #include #include #include namespace boost{ namespace poly_collection{ template class function_collection: public detail::poly_collection_impl::poly_collection< detail::function_model,Allocator> { using base_type=detail::poly_collection_impl::poly_collection< detail::function_model,Allocator>; base_type& base()noexcept{return *this;} const base_type& base()const noexcept{return *this;} public: using base_type::base_type; function_collection()=default; function_collection(const function_collection& x)=default; function_collection(function_collection&& x)=default; function_collection& operator=(const function_collection& x)=default; function_collection& operator=(function_collection&& x)=default; template friend bool operator==( const function_collection&,const function_collection&); }; template bool operator==( const function_collection& x, const function_collection& y) { return x.base()==y.base(); } template bool operator!=( const function_collection& x, const function_collection& y) { return !(x==y); } template void swap( function_collection& x, function_collection& y) { x.swap(y); } } /* namespace */ using poly_collection::function_collection; } /* namespace boost */ #endif