🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.c
Article #310329

Re: Obiekt funkcji w C++

#310329
From: Borneq
Date: Mon, 30 Nov 2020 10:33
12 lines
1505 bytes
On 11/30/20 10:55 AM, Borneq wrote:
> Czy da się to zrobić najlepiej lambdami? Jeśli tak, to jak wygląda 
> parametr lambdy np. w tej metodzie plot? Jak ją pamiętać w jakiejś 
> zmiennej lub polu klasy?

Juz wiem, po co sa lambdy, innym sposobem byłoby trudno.

     typedef std::function <double( double )> Function;

     Function f = [](double x ) {
         return exp(x);
     };
Technical Details
Message-ID: <5fc4ca7c$0$523$65785112@news.neostrada.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed.pionier.net.pl!2.eu.feeder.erje.net!feeder.erje.net!feeder1.feed.usenet.farm!feed.usenet.farm!aioe.org!peer02.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!newsfeed.neostrada.pl!unt-exc-01.news.neostrada.pl!unt-spo-a-01.news.neostrada.pl!news.neostrada.pl.POSTED!not-for-mail
References: <5fc4c1ae$0$512$65785112@news.neostrada.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed.pionier.net.pl!2.eu.feeder.erje.net!feeder.erje.net!feeder1.feed.usenet.farm!feed.usenet.farm!aioe.org!peer02.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!newsfeed.neostrada.pl!unt-exc-01.news.neostrada.pl!unt-spo-a-01.news.neostrada.pl!news.neostrada.pl.POSTED!not-for-mail
Subject: Re: Obiekt funkcji w C++
Newsgroups: pl.comp.lang.c
References: <5fc4c1ae$0$512$65785112@news.neostrada.pl>
From: Borneq <borneq@antyspam.hidden.pl>
Date: Mon, 30 Nov 2020 11:33:32 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0
MIME-Version: 1.0
In-Reply-To: <5fc4c1ae$0$512$65785112@news.neostrada.pl>
Lines: 12
Message-ID: <5fc4ca7c$0$523$65785112@news.neostrada.pl>
Organization: Telekomunikacja Polska
NNTP-Posting-Host: 37.225.1.61
X-Trace: 1606732412 unt-rea-b-01.news.neostrada.pl 523 37.225.1.61:16454
X-Complaints-To: abuse@news.neostrada.pl
X-Received-Bytes: 1275
X-Received-Body-CRC: 2245574059
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit