File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,8 +13,8 @@ namespace math {
1313 *
1414 * Overload for a single integral input
1515 *
16- * @tparam T The type of integral input.
17- * @param x boolean input
16+ * @tparam T Any type convertible to `bool`
17+ * @param x integral input
1818 * @return The input unchanged
1919 */
2020template <typename T, require_t <std::is_convertible<T, bool >>* = nullptr >
@@ -63,8 +63,8 @@ inline bool all(const std::vector<InnerT>& x) {
6363 *
6464 * Overload for a tuple input.
6565 *
66- * @tparam Type of container
67- * @param x Nested container of boolean inputs
66+ * @tparam Types of items within tuple
67+ * @param x Tuple of boolean scalar-type elements
6868 * @return Boolean indicating whether all elements are true
6969 */
7070template <typename ... Types>
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ namespace math {
1313 *
1414 * Overload for a single boolean input
1515 *
16- * @tparam T The type of integral input.
16+ * @tparam T Any type convertible to `bool`
1717 * @param x boolean input
1818 * @return The input unchanged
1919 */
@@ -63,9 +63,9 @@ inline bool any(const std::vector<InnerT>& x) {
6363 *
6464 * Overload for a tuple input.
6565 *
66- * @tparam Type of container
67- * @param x Nested container of boolean inputs
68- * @return Boolean indicating whether all elements are true
66+ * @tparam Types of items within tuple
67+ * @param x Tuple of boolean scalar-type elements
68+ * @return Boolean indicating whether any elements are true
6969 */
7070template <typename ... Types>
7171inline bool any (const std::tuple<Types...>& x) {
You can’t perform that action at this time.
0 commit comments