Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #120636

Re: Lambda in STL compare

From Muttley@DastartdlyHQ.org
Newsgroups comp.lang.c++
Subject Re: Lambda in STL compare
Date 2024-10-08 10:24 +0000
Organization A noiseless patient Spider
Message-ID <ve3190$25e6f$1@dont-email.me> (permalink)
References (5 earlier) <ve0tci$1onkf$1@raubtier-asyl.eternal-september.org> <ve0vo0$1p2dt$1@dont-email.me> <ve108g$1p4j5$1@raubtier-asyl.eternal-september.org> <ve2q6h$24fht$1@dont-email.me> <ve2q9c$24fi9$1@raubtier-asyl.eternal-september.org>

Show all headers | View raw


On Tue, 8 Oct 2024 10:25:33 +0200
Bonita Montero <Bonita.Montero@gmail.com> boring babbled:
>Am 08.10.2024 um 10:23 schrieb Muttley@DastartdlyHQ.org:
>
>> So make it convertable. I find it perverse that the declaration of a struct/
>> class and the declaration of a function/lambda are considered different types
>
>> of declarations. ..
>
>
>In one case you have a variable-_defintiion_, in the other a declaration.

No, they're both declarations. The only difference is how you assign them
to variables.

[](whatever) { } 

is not a variable, its a definition.

auto lambda = [](whatever) { }

is a variable declaration and assignment.

Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Lambda in STL compare Muttley@DastartdlyHQ.org - 2024-10-07 07:32 +0000
  Re: Lambda in STL compare Bonita Montero <Bonita.Montero@gmail.com> - 2024-10-07 10:12 +0200
    Re: Lambda in STL compare Muttley@DastartdlyHQ.org - 2024-10-07 09:32 +0000
  Re: Lambda in STL compare David Brown <david.brown@hesbynett.no> - 2024-10-07 10:16 +0200
  Re: Lambda in STL compare Sam <sam@email-scan.com> - 2024-10-07 07:35 -0400
    Re: Lambda in STL compare Muttley@DastartdlyHQ.org - 2024-10-07 14:06 +0000
      Re: Lambda in STL compare Bonita Montero <Bonita.Montero@gmail.com> - 2024-10-07 16:13 +0200
        Re: Lambda in STL compare Muttley@DastartdlyHQ.org - 2024-10-07 14:53 +0000
          Re: Lambda in STL compare Bonita Montero <Bonita.Montero@gmail.com> - 2024-10-07 17:06 +0200
            Re: Lambda in STL compare Muttley@DastartdlyHQ.org - 2024-10-07 15:46 +0000
              Re: Lambda in STL compare Bonita Montero <Bonita.Montero@gmail.com> - 2024-10-07 17:55 +0200
                Re: Lambda in STL compare Muttley@DastartdlyHQ.org - 2024-10-08 08:23 +0000
                Re: Lambda in STL compare Bonita Montero <Bonita.Montero@gmail.com> - 2024-10-08 10:25 +0200
                Re: Lambda in STL compare Muttley@DastartdlyHQ.org - 2024-10-08 10:24 +0000
                Re: Lambda in STL compare Bonita Montero <Bonita.Montero@gmail.com> - 2024-10-08 13:10 +0200
      Re: Lambda in STL compare Sam <sam@email-scan.com> - 2024-10-08 08:25 -0400
        Re: Lambda in STL compare Muttley@DastartdlyHQ.org - 2024-10-08 14:44 +0000
          Re: Lambda in STL compare Sam <sam@email-scan.com> - 2024-10-08 17:52 -0400
            Re: Lambda in STL compare "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2024-10-08 22:56 -0700
            Re: Lambda in STL compare Muttley@DastartdlyHQ.org - 2024-10-09 07:15 +0000
              Re: Lambda in STL compare Bonita Montero <Bonita.Montero@gmail.com> - 2024-10-09 09:21 +0200
                Re: Lambda in STL compare Muttley@DastartdlyHQ.org - 2024-10-09 07:22 +0000
            Re: Lambda in STL compare Muttley@DastartdlyHQ.org - 2024-10-09 07:16 +0000
              Re: Lambda in STL compare "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2024-10-09 00:23 -0700
  Re: Lambda in STL compare Andrey Tarasevich <andreytarasevich@hotmail.com> - 2024-10-07 07:17 -0700

csiph-web