Questions tagged [niebloid]
4 questions
12
votes
1 answer
Why does tag_invoke pattern need the Niebloid std::tag_invoke at all?
This question assumes familiarity with the customization point management technique tag_invoke, introduced in P1895R0.
A customization point object can be defined according to P1895R0 as:
inline constexpr struct foo_cpo {
// simplified original…

Nick
- 931
- 6
- 17
2
votes
1 answer
std::ranges algorithm function object customisation points AKA niebloids - problems with std lib types
All done with gcc 11.2 and libstdc++-11
Below code shows a variety of ways of using std::sort and then std::ranges::sort to sort builtins, user defined types and a std library type.
Only the std library type gives me trouble:
I can't easily define…

Oliver Schönrock
- 1,038
- 6
- 11
1
vote
1 answer
Can Niebloids be passed where Callables is required?
Generally speaking, unless explicitly allowed, the behavior of a C++ program that tries to take the pointer of a standard library function is unspecified. Which means extra caution should be taken before passing them as Callable. Instead it is…

Ranoiaetep
- 5,872
- 1
- 14
- 39
0
votes
1 answer
Is it a disadvantage to have "names" coupled due to custom point objects?
As we know, the CPO can use concepts to check the performance requirements(like input type, output type, etc.) of the user-defined function reload that it found. But they can't check the semantics of the user's function, right? Like the following…

zclll
- 77
- 7