[libcxx-dev] Where are the container comparison tests?

Christopher Di Bella via libcxx-dev libcxx-dev at lists.llvm.org
Sat Jun 20 22:38:57 PDT 2020


Yeah, that's all I've found. I take it there's nothing for std::vector and
friends. What does that mean for implementing <=>?

On Sat, 20 Jun 2020 at 12:46, Marshall Clow <mclow.lists at gmail.com> wrote:

> On May 31, 2020, at 4:05 PM, Christopher Di Bella via libcxx-dev <
> libcxx-dev at lists.llvm.org> wrote:
> >
> > Hi,
> >
> > I'm implementing the spaceship operator for the standard containers at
> the moment, but I can only find the array comparison tests. (And when I get
> operator<=> to do something wrong at run-time, no assertions seem to fire.
> Compile-time errors confirm they're being compiled.)
> >
> > Where are they located?
>
> We have them for std::array, it appears. ;-)
> In libcxx/test/std/containers/sequences/array/compare.pass.cpp
>
> — Marshall
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/libcxx-dev/attachments/20200620/979f626f/attachment.html>


More information about the libcxx-dev mailing list