Article View: pl.comp.lang.c
Article #309523C++ i dyrektywa using
From: szykcech
Date: Sun, 03 Dec 2017 09:32
Date: Sun, 03 Dec 2017 09:32
28 lines
1882 bytes
1882 bytes
Witam Czytam sobie http://en.cppreference.com/w/cpp/language/type_alias że using w C++11 poszerzono o: "Type alias is a name that refers to a previously defined type (similar to typedef)." Czy to znaczy tylko tyle, że jest to inna (bardziej przyjazna?) forma typedef?!? Co jest bardziej zalecane?!? pozdrawia Szyk Cech ps. Wiem o innych zastosowaniach using: a) using ng namespace XXX; b) "ściąganie" wybranych klas do naszej przestrzeni nazw. Np.: #include <string> using std::string; -- http://szyk.jcom.pl/ http://szyk.free.of.pl/ http://szykcech.cba.pl/ http://szyk.000webhostapp.com/ http://www.geocities.ws/szyk/ http://szyk.wex.pl/
Technical Details
Message-ID:
<e0353a42-36b9-4951-b58b-a622691674e4@googlegroups.com>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!news.nask.pl!news.nask.org.pl!news.unit0.net!peer03.am4!peer.am4.highwinds-media.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!g35no190762qtk.1!news-out.google.com!t48ni496qtc.1!nntp.google.com!m31no190718qtf.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mailShow Full Headers
Complete Article Headers
X-Received: by 10.55.74.8 with SMTP id x8mr8485671qka.22.1512293547842; Sun, 03 Dec 2017 01:32:27 -0800 (PST) X-Received: by 10.31.94.198 with SMTP id s189mr831680vkb.9.1512293547666; Sun, 03 Dec 2017 01:32:27 -0800 (PST) Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!news.nask.pl!news.nask.org.pl!news.unit0.net!peer03.am4!peer.am4.highwinds-media.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!g35no190762qtk.1!news-out.google.com!t48ni496qtc.1!nntp.google.com!m31no190718qtf.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: pl.comp.lang.c Date: Sun, 3 Dec 2017 01:32:27 -0800 (PST) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=188.146.0.122; posting-account=pyti1AoAAAAf66c003TUy10QAAnMWaKw NNTP-Posting-Host: 188.146.0.122 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <e0353a42-36b9-4951-b58b-a622691674e4@googlegroups.com> Subject: C++ i dyrektywa using From: szykcech@gmail.com Injection-Date: Sun, 03 Dec 2017 09:32:27 +0000 X-Received-Bytes: 1683 X-Received-Body-CRC: 3319752528 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit