forked from boostorg/algorithm
Added constexpr modifiers for C++14 mode and some tests
This commit is contained in:
1 parent
61a4bd45fb
commit
8d095e9d30
19 files changed
+111
-71
No files matched your search
@@ -28,7 +28,7 @@ namespace boost { namespace algorithm {
|
||||
/// We will use the standard one if it is available,
|
||||
/// otherwise we have our own implementation.
|
||||
template <typename InputIterator, typename Size, typename OutputIterator>
|
||||
OutputIterator copy_n ( InputIterator first, Size n, OutputIterator result )
|
||||
BOOST_CXX14_CONSTEXPR OutputIterator copy_n ( InputIterator first, Size n, OutputIterator result )
|
||||
{
|
||||
for ( ; n > 0; --n, ++first, ++result )
|
||||
*result = *first;
|
||||
|
||||
Reference in new issue
Block a user