-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #316 from stlab/develop
Merge develop into master for 1.5.3
- Loading branch information
Showing
20 changed files
with
2,405 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"hyde-src-root": "stlab", | ||
"hyde-yaml-dir": "../stlab.github.io/libraries", | ||
"clang_flags": [ | ||
"-std=c++17", | ||
"-I.", | ||
"-Wno-everything" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
# The intent of this script is to generate the documentation shell that will eventually be migrated | ||
# to stlab.github.io. This script assumes `stlab/` and `stlab.github.io/` are sibling repositories. | ||
|
||
pushd $(dirname $0) > /dev/null | ||
|
||
XCODE_TOOLCHAIN=$(xcode-select -p) | ||
|
||
# They moved it _again_! *shakes fist* | ||
XCODE_11_5_CPP_DIR=${XCODE_TOOLCHAIN}/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1 | ||
|
||
# echo ${XCODE_11_5_CPP_DIR} | ||
|
||
HYDE_ARGS="--hyde-update --access-filter-public --namespace-blacklist=detail,unsafe --use-system-clang" | ||
|
||
hyde ${HYDE_ARGS} stlab/forest.hpp -- -I${XCODE_11_5_CPP_DIR} | ||
|
||
popd > /dev/null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
/* | ||
Copyright 2013 Adobe | ||
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 STLAB_ALGORITHM_REVERSE_HPP | ||
#define STLAB_ALGORITHM_REVERSE_HPP | ||
|
||
#include <algorithm> | ||
#include <utility> | ||
|
||
#include <stlab/iterator/set_next.hpp> | ||
|
||
/*************************************************************************************************/ | ||
|
||
namespace stlab { | ||
|
||
/*************************************************************************************************/ | ||
|
||
namespace unsafe { | ||
|
||
/*************************************************************************************************/ | ||
|
||
template <typename I> // I models NodeIterator | ||
I reverse_append(I first, I last, I result) { | ||
while (first != last) { | ||
I prior(first); | ||
++first; | ||
stlab::unsafe::set_next(prior, result); | ||
result = prior; | ||
} | ||
return result; | ||
} | ||
|
||
template <typename R, // R models NodeRange | ||
typename I> // I models NodeIterator | ||
inline I reverse_append(R& range, I result) { | ||
return stlab::unsafe::reverse_append(std::begin(range), std::end(range), result); | ||
} | ||
|
||
template <typename I> // I models NodeIterator | ||
inline I reverse_nodes(I first, I last) { | ||
return stlab::unsafe::reverse_append(first, last, last); | ||
} | ||
|
||
template <typename R> // R models NodeRange | ||
inline typename R::iterator reverse_nodes(R& range) { | ||
return stlab::unsafe::reverse_nodes(std::begin(range), std::end(range)); | ||
} | ||
|
||
/*************************************************************************************************/ | ||
|
||
} // namspace unsafe | ||
|
||
/*************************************************************************************************/ | ||
|
||
template <class BidirectionalRange> | ||
inline void reverse(BidirectionalRange& range) { | ||
std::reverse(std::begin(range), std::end(range)); | ||
} | ||
|
||
template <class BidirectionalRange, class OutputIterator> | ||
inline void reverse_copy(BidirectionalRange& range, OutputIterator result) { | ||
std::reverse_copy(std::begin(range), std::end(range), result); | ||
} | ||
|
||
template <class BidirectionalRange, class OutputIterator> | ||
inline void reverse_copy(const BidirectionalRange& range, OutputIterator result) { | ||
std::reverse_copy(std::begin(range), std::end(range), result); | ||
} | ||
|
||
/*************************************************************************************************/ | ||
|
||
template <typename I> // I models BidirectionalIterator | ||
std::pair<I, I> reverse_until(I f, I m, I l) { | ||
while (f != m && m != l) { | ||
--l; | ||
|
||
std::iter_swap(f, l); | ||
|
||
++f; | ||
} | ||
|
||
return std::pair<I, I>(f, l); | ||
} | ||
|
||
/*************************************************************************************************/ | ||
|
||
} // namespace stlab | ||
|
||
/*************************************************************************************************/ | ||
|
||
#endif // STLAB_ALGORITHM_REVERSE_HPP | ||
|
||
/*************************************************************************************************/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.