Article View: pl.comp.lang.c
Article #309929Re: Jakim cudem to działa?!? std::this_thread::sleep_for(1ms);
From: Wojciech Muła
Date: Sat, 14 Sep 2019 20:07
Date: Sat, 14 Sep 2019 20:07
18 lines
1983 bytes
1983 bytes
On Friday, September 13, 2019 at 8:27:18 PM UTC+2, Szyk Cech wrote: > Mam pytanie jak ta technika się nazywa i jak to właściwie działa: > std::this_thread::sleep_for(1ms); > Chodzi mi o wyrażenie: 1ms > Nie jest to string, nie jest to int ani float... To jest built-in string literal, programista może dodawać swoje, tylko musi je poprzedzić "_". https://en.cppreference.com/w/cpp/language/user_literal > Mam książkę: > "C++ Biblioteka Standardowa" Nicolai M. Josuttis, wydanie 2, Helion, > Gliwice 2014. Pewnie kod z wydania 1. :) Widzę w spisie treści na stronie Heliona: 3.1.6. Nowe literały napisowe (48) w.
Technical Details
Message-ID:
<4540703b-014a-4e0f-8398-133ba27ae7c4@googlegroups.com>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!wsisiz.edu.pl!goblin3!goblin.stu.neva.ru!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!o24no7040270qtl.0!news-out.google.com!x7ni403qtf.0!nntp.google.com!o24no7040268qtl.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mailReferences:
<8cReF.190168$aI7.114261@fx22.am4>Show Full Headers
Complete Article Headers
X-Received: by 2002:a37:e409:: with SMTP id y9mr52706804qkf.423.1568491622193; Sat, 14 Sep 2019 13:07:02 -0700 (PDT) X-Received: by 2002:a25:860f:: with SMTP id y15mr4898030ybk.238.1568491621976; Sat, 14 Sep 2019 13:07:01 -0700 (PDT) Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!wsisiz.edu.pl!goblin3!goblin.stu.neva.ru!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!o24no7040270qtl.0!news-out.google.com!x7ni403qtf.0!nntp.google.com!o24no7040268qtl.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: pl.comp.lang.c Date: Sat, 14 Sep 2019 13:07:01 -0700 (PDT) In-Reply-To: <8cReF.190168$aI7.114261@fx22.am4> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=217.97.113.161; posting-account=VFwkXwoAAADdT4-lLKRZrMYkTjizGoyn NNTP-Posting-Host: 217.97.113.161 References: <8cReF.190168$aI7.114261@fx22.am4> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <4540703b-014a-4e0f-8398-133ba27ae7c4@googlegroups.com> Subject: Re: Jakim cudem to działa?!? std::this_thread::sleep_for(1ms); From: Wojciech Muła <wojciech_mula@poczta.onet.pl> Injection-Date: Sat, 14 Sep 2019 20:07:02 +0000 Lines: 18 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit