6#define __XTD_STD_INTERNAL__
8#undef __XTD_STD_INTERNAL__
15#if defined(__xtd__cpp_lib_ranges)
40 template <
typename comparer_t>
41 struct with_comparer {
42 const comparer_t& comparer;
44 template <std::ranges::range range_t>
47 template <std::ranges::range range_t>
48 friend auto operator |(range_t&& source,
const with_comparer& self) {
return self(std::forward<range_t>(source));}
58 template <std::ranges::range range_t>
64 template <std::ranges::range range_t,
typename comparer_t>
69 template <
typename comparer_t>
70 auto operator()(
const comparer_t& comparer)
const {
return with_comparer {comparer};}
83 template <std::ranges::range range_type>
Contains __xtd_std_version definitions.
static const auto & as_enumerable(const ienumerable< source_t > &source) noexcept
Returns the input typed as xtd::collections::generic::ienumerable <type_t>.
Definition enumerable.hpp:286
static const auto & from(const ienumerable< source_t > &source) noexcept
Returns the input typed as xtd::collections::generic::ienumerable <type_t>.
Definition enumerable.hpp:651
The xtd::ranges::views::distinct_view class is used to distinct elements from a sequence.
Definition distinct_view.hpp:39
auto operator()(range_t &&source) const
Returns distinct elements from a sequence by using the default equality comparer to compare values.
Definition distinct_view.hpp:59
auto operator()(range_t &&source, const comparer_t &comparer) const
Returns distinct elements from a sequence by using a specified xtd::collections::generic::iequality_c...
Definition distinct_view.hpp:65
auto operator()(const comparer_t &comparer) const
Returns distinct elements from a sequence by using a specified xtd::collections::generic::iequality_c...
Definition distinct_view.hpp:70
friend auto operator|(range_type &&source, const distinct_view &view)
Applies a distinct projection on the given range using the pipe operator.
Definition distinct_view.hpp:84
Contains xtd::istringable interface.
Contains xtd::linq::enumerable <type_t> class.
The view namesapce contains range views, lightweight objects that indirectly represent iterable seque...
Definition distinct.hpp:20
The ranges namespace is an extension and generalization of the xtd::linq that makes them more powerfu...
Definition distinct.hpp:18
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
Contains xtd::string alias.
Contains xtd::views alias namespace.