Replace skstd::monostate with std::monostate.

Change-Id: Ia3a2b65ba00468d79e37b0dced613423ca5b81cb
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/502779
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Ben Wagner <bungeman@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
This commit is contained in:
John Stiles 2022-02-01 15:56:07 -05:00 committed by SkCQ
parent 78d380e56b
commit 3d25a39b35
2 changed files with 2 additions and 6 deletions

View File

@ -19,9 +19,6 @@
namespace skstd {
// C++17, <variant>
struct monostate {};
// C++17, <type_traits>
template<typename...> struct conjunction : std::true_type { };
template<typename T> struct conjunction<T> : T { };

View File

@ -11,10 +11,9 @@
#include <cstddef>
#include <iterator>
#include <tuple>
#include <variant>
#include "include/private/SkTLogic.h"
template <typename Iter, typename C = skstd::monostate>
template <typename Iter, typename C = std::monostate>
class SkEnumerate {
using Captured = decltype(*std::declval<Iter>());
template <typename> struct is_tuple : std::false_type {};