template<classInputIt,classUnaryPredicate>boolall_of( InputIt first, InputIt last, UnaryPredicate p );(1)(C++11 起)(C++20 前)template<classInputIt,classUnaryPredicate>constexprboolall_of( InputIt first, InputIt last, UnaryPredicate p );(1)(C++20 起)template<classExecutionPolicy,classForwardIt,classUnaryPredicate>boolall_of( ExecutionPolicy&& policy, ForwardIt first, ForwardIt last,
UnaryPredicate p );(2)(C++17 起)template<classInputIt,classUnaryPredicate>boolany_of( InputIt first, InputIt last, UnaryPredicate p );(3)(C++11 起)(C++20 前)template<classInputIt,classUnaryPredicate>constexprboolany_of( InputIt first, InputIt last, UnaryPredicate p );(3)(C++20 起)template<classExecutionPolicy,classForwardIt,classUnaryPredicate>boolany_of( ExecutionPolicy&& policy, ForwardIt first, ForwardIt last,
UnaryPredicate p );(4)(C++17 起)template<classInputIt,classUnaryPredicate>boolnone_of( InputIt first, InputIt last, UnaryPredicate p );(5)(C++11 起)(C++20 前)template<classInputIt,classUnaryPredicate>constexprboolnone_of( InputIt first, InputIt last, UnaryPredicate p );(5)(C++20 起)template<classExecutionPolicy,classForwardIt,classUnaryPredicate>boolnone_of( ExecutionPolicy&& policy, ForwardIt first, ForwardIt last,
UnaryPredicate p );(6)(C++17 起)
vc1:123
vc2:135
vc3:246
vc4:
all_of vc1 is not even
all_of vc2 is not even
all_of vc3 is even
all_of vc4 is even // 结果1
any_of vc1 is even
any_of vc2 is not even
any_of vc3 is even
any_of vc4 is not even // 结果1
none_of vc1 is not even
none_of vc2 is even
none_of vc3 is not even
none_of vc4 is even // 结果1