C++の話(本当にあった怖い話)

Yuki Tamura
Yuki Tamuraディライトワークス株式会社 at ディライトワークス株式会社
Python Hack-a-thon 2010.07




2010   7   10
name:Isoparametric

                blog:http://d.hatena.ne.jp/Isoparametric/


                         Blog              ……

                             ……

                        Python/Django

2010   7   10
C++

                C++       C

                1983



                      C with Classes




2010   7   10
C++

                1.

                2.

                3.

                4.




2010   7   10
Bjarne Stroustrup




2010   7   10
if, for, while    C




                         (RTTI)



2010   7   10
C++


                            (1986)




                      C++



2010   7   10
C++


            C




2010   7   10
C++   C




2010   7   10
C++




2010   7   10
C++




2010   7   10
C++




2010   7   10
2010   7   10
#include <iostream>
            #include <algorithm>
            #include <boost/array.hpp>
            using namespace std;
            // letsboost
            int main()
            {
            	 boost::array<int, 100> ar; // int ar[100];
            	 for( int i=0; i<ar.size(); ++i )
            	 	 ar[i] = i * 100;

            	 boost::array<int, 4> ar2 = {{0, 100, 200, 300}};

            	 if( equal( ar2.begin(), ar2.end(), ar.begin() ) )
            	 	 cout << "same" << endl;

            	 return 0;
            }

                    boost::array
2010   7   10
/* The following code declares class array,
            * an STL container (as wrapper) for arrays of constant size.
            *
            * See
            *      http://www.boost.org/libs/array/
            * for documentation.
            *
            * The original author site is at: http://www.josuttis.com/
            *
            * (C) Copyright Nicolai M. Josuttis 2001.
            *
            * Distributed under the Boost Software License, Version 1.0. (See
            * accompanying file LICENSE_1_0.txt or copy at
            * http://www.boost.org/LICENSE_1_0.txt)
            *
            * 10 Mar 2010 - (mtc) fill method added, matching resolution of the standard library working group.
            *	 	    See <http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#776> or Trac issue #3168
            *	 	    Eventually, we should remove "assign" which is now a synonym for "fill" (Marshall Clow)
            * 10 Mar 2010 - added workaround for SUNCC and !STLPort [trac #3893] (Marshall Clow)
            * 29 Jan 2004 - c_array() added, BOOST_NO_PRIVATE_IN_AGGREGATE removed (Nico Josuttis)
            * 23 Aug 2002 - fix for Non-MSVC compilers combined with MSVC libraries.
            * 05 Aug 2001 - minor update (Nico Josuttis)
            * 20 Jan 2001 - STLport fix (Beman Dawes)
            * 29 Sep 2000 - Initial Revision (Nico Josuttis)
            *
            * Jan 29, 2004
            */
           #ifndef BOOST_ARRAY_HPP
           #define BOOST_ARRAY_HPP

           #include <boost/detail/workaround.hpp>

           #if BOOST_WORKAROUND(BOOST_MSVC, >= 1400)
           # pragma warning(push)
           # pragma warning(disable:4996) // 'std::equal': Function call with parameters that may be unsafe
           # pragma warning(disable:4510) // boost::array<T,N>' : default constructor could not be generated
           # pragma warning(disable:4610) // warning C4610: class 'boost::array<T,N>' can never be instantiated - user defined constru
           required
           #endif

           #include   <cstddef>
           #include   <stdexcept>
           #include   <boost/assert.hpp>
           #include   <boost/swap.hpp>
2010   7   10
2010   7   10
2010   7   10
2010   7   10
2010   7   10
2010   7   10
2010   7   10
2010   7   10
2010   7   10
2010   7   10
2010   7   10
2010   7   10
2010   7   10
2010   7   10
2010   7   10
2010   7   10
2010   7   10
2010   7   10
2010   7   10
2010   7   10
2010   7   10
2010   7   10
2010   7   10
2010   7   10
2010   7   10
2010   7   10
2010   7   10
2010   7   10
2010   7   10
2010   7   10
2010   7   10
2010   7   10
2010   7   10
2010   7   10
2010   7   10
2010   7   10
2010   7   10
2010   7   10
2010   7   10
2010   7   10
2010   7   10
2010   7   10
2010   7   10
2010   7   10
2010   7   10
2010   7   12
2010   7   12
2010   7   10
2010   7   10
2010   7   10
http://togetter.com/li/6669
2010   7   10
2010   7   10
2010   7   10
2010   7   10
C++




                C++




2010   7   10
2010   7   10
1 of 70

Recommended

constexpr関数はコンパイル時処理。これはいい。実行時が霞んで見える。cpuの嬌声が聞こえてきそうだ by
constexpr関数はコンパイル時処理。これはいい。実行時が霞んで見える。cpuの嬌声が聞こえてきそうだconstexpr関数はコンパイル時処理。これはいい。実行時が霞んで見える。cpuの嬌声が聞こえてきそうだ
constexpr関数はコンパイル時処理。これはいい。実行時が霞んで見える。cpuの嬌声が聞こえてきそうだGenya Murakami
52.4K views106 slides
【Unite Tokyo 2018】さては非同期だなオメー!async/await完全に理解しよう by
【Unite Tokyo 2018】さては非同期だなオメー!async/await完全に理解しよう【Unite Tokyo 2018】さては非同期だなオメー!async/await完全に理解しよう
【Unite Tokyo 2018】さては非同期だなオメー!async/await完全に理解しようUnity Technologies Japan K.K.
47.7K views68 slides
LLVM最適化のこつ by
LLVM最適化のこつLLVM最適化のこつ
LLVM最適化のこつMITSUNARI Shigeo
7.4K views27 slides
GPUが100倍速いという神話をぶち殺せたらいいな ver.2013 by
GPUが100倍速いという神話をぶち殺せたらいいな ver.2013GPUが100倍速いという神話をぶち殺せたらいいな ver.2013
GPUが100倍速いという神話をぶち殺せたらいいな ver.2013Ryo Sakamoto
8.8K views45 slides
組み込み関数(intrinsic)によるSIMD入門 by
組み込み関数(intrinsic)によるSIMD入門組み込み関数(intrinsic)によるSIMD入門
組み込み関数(intrinsic)によるSIMD入門Norishige Fukushima
47.5K views122 slides
SSE4.2の文字列処理命令の紹介 by
SSE4.2の文字列処理命令の紹介SSE4.2の文字列処理命令の紹介
SSE4.2の文字列処理命令の紹介MITSUNARI Shigeo
8.8K views41 slides

More Related Content

What's hot

Constexpr 中3女子テクニック by
Constexpr 中3女子テクニックConstexpr 中3女子テクニック
Constexpr 中3女子テクニックGenya Murakami
33K views138 slides
プログラムを高速化する話 by
プログラムを高速化する話プログラムを高速化する話
プログラムを高速化する話京大 マイコンクラブ
242.3K views120 slides
すごい constexpr たのしくレイトレ! by
すごい constexpr たのしくレイトレ!すごい constexpr たのしくレイトレ!
すごい constexpr たのしくレイトレ!Genya Murakami
25.6K views206 slides
中3女子が狂える本当に気持ちのいい constexpr by
中3女子が狂える本当に気持ちのいい constexpr中3女子が狂える本当に気持ちのいい constexpr
中3女子が狂える本当に気持ちのいい constexprGenya Murakami
30.5K views58 slides
ゲーム開発者のための C++11/C++14 by
ゲーム開発者のための C++11/C++14ゲーム開発者のための C++11/C++14
ゲーム開発者のための C++11/C++14Ryo Suzuki
103.6K views157 slides
クロージャデザインパターン by
クロージャデザインパターンクロージャデザインパターン
クロージャデザインパターンMoriharu Ohzu
19.6K views146 slides

What's hot(20)

Constexpr 中3女子テクニック by Genya Murakami
Constexpr 中3女子テクニックConstexpr 中3女子テクニック
Constexpr 中3女子テクニック
Genya Murakami33K views
すごい constexpr たのしくレイトレ! by Genya Murakami
すごい constexpr たのしくレイトレ!すごい constexpr たのしくレイトレ!
すごい constexpr たのしくレイトレ!
Genya Murakami25.6K views
中3女子が狂える本当に気持ちのいい constexpr by Genya Murakami
中3女子が狂える本当に気持ちのいい constexpr中3女子が狂える本当に気持ちのいい constexpr
中3女子が狂える本当に気持ちのいい constexpr
Genya Murakami30.5K views
ゲーム開発者のための C++11/C++14 by Ryo Suzuki
ゲーム開発者のための C++11/C++14ゲーム開発者のための C++11/C++14
ゲーム開発者のための C++11/C++14
Ryo Suzuki103.6K views
クロージャデザインパターン by Moriharu Ohzu
クロージャデザインパターンクロージャデザインパターン
クロージャデザインパターン
Moriharu Ohzu19.6K views
Pythonの処理系はどのように実装され,どのように動いているのか? 我々はその実態を調査すべくアマゾンへと飛んだ. by kiki utagawa
Pythonの処理系はどのように実装され,どのように動いているのか? 我々はその実態を調査すべくアマゾンへと飛んだ.Pythonの処理系はどのように実装され,どのように動いているのか? 我々はその実態を調査すべくアマゾンへと飛んだ.
Pythonの処理系はどのように実装され,どのように動いているのか? 我々はその実態を調査すべくアマゾンへと飛んだ.
kiki utagawa19.7K views
LLVMで遊ぶ(整数圧縮とか、x86向けの自動ベクトル化とか) by Takeshi Yamamuro
LLVMで遊ぶ(整数圧縮とか、x86向けの自動ベクトル化とか)LLVMで遊ぶ(整数圧縮とか、x86向けの自動ベクトル化とか)
LLVMで遊ぶ(整数圧縮とか、x86向けの自動ベクトル化とか)
Takeshi Yamamuro10.7K views
すごいConstたのしく使おう! by Akihiro Nishimura
すごいConstたのしく使おう!すごいConstたのしく使おう!
すごいConstたのしく使おう!
Akihiro Nishimura13.3K views
新しい並列for構文のご提案 by yohhoy
新しい並列for構文のご提案新しい並列for構文のご提案
新しい並列for構文のご提案
yohhoy29.6K views
PPL 2022 招待講演: 静的型つき函数型組版処理システムSATySFiの紹介 by T. Suwa
PPL 2022 招待講演: 静的型つき函数型組版処理システムSATySFiの紹介PPL 2022 招待講演: 静的型つき函数型組版処理システムSATySFiの紹介
PPL 2022 招待講演: 静的型つき函数型組版処理システムSATySFiの紹介
T. Suwa3.8K views
CTF超入門 (for 第12回セキュリティさくら) by kikuchan98
CTF超入門 (for 第12回セキュリティさくら)CTF超入門 (for 第12回セキュリティさくら)
CTF超入門 (for 第12回セキュリティさくら)
kikuchan9881.3K views
Intel AVX-512/富岳SVE用SIMDコード生成ライブラリsimdgen by MITSUNARI Shigeo
Intel AVX-512/富岳SVE用SIMDコード生成ライブラリsimdgenIntel AVX-512/富岳SVE用SIMDコード生成ライブラリsimdgen
Intel AVX-512/富岳SVE用SIMDコード生成ライブラリsimdgen
MITSUNARI Shigeo2.4K views
オブジェクト指向できていますか? by Moriharu Ohzu
オブジェクト指向できていますか?オブジェクト指向できていますか?
オブジェクト指向できていますか?
Moriharu Ohzu237.5K views

Viewers also liked

C++の黒魔術 by
C++の黒魔術C++の黒魔術
C++の黒魔術Daichi OBINATA
6.8K views24 slides
闇魔術を触ってみた by
闇魔術を触ってみた闇魔術を触ってみた
闇魔術を触ってみたSatoshi Sato
6.7K views36 slides
Boostのあるプログラミング生活 by
Boostのあるプログラミング生活Boostのあるプログラミング生活
Boostのあるプログラミング生活Akira Takahashi
3.8K views59 slides
C++14 Overview by
C++14 OverviewC++14 Overview
C++14 OverviewAkira Takahashi
11.8K views33 slides
C++ Presentation by
C++ PresentationC++ Presentation
C++ PresentationCarson Wilber
2.5K views53 slides
エクストリームC++11/14プログラミング by
エクストリームC++11/14プログラミングエクストリームC++11/14プログラミング
エクストリームC++11/14プログラミングegtra
2.1K views26 slides

Viewers also liked(9)

闇魔術を触ってみた by Satoshi Sato
闇魔術を触ってみた闇魔術を触ってみた
闇魔術を触ってみた
Satoshi Sato6.7K views
Boostのあるプログラミング生活 by Akira Takahashi
Boostのあるプログラミング生活Boostのあるプログラミング生活
Boostのあるプログラミング生活
Akira Takahashi3.8K views
エクストリームC++11/14プログラミング by egtra
エクストリームC++11/14プログラミングエクストリームC++11/14プログラミング
エクストリームC++11/14プログラミング
egtra2.1K views
ブロケード FC ファブリックスイッチオペレーション講座(前編) by Brocade
ブロケード FC ファブリックスイッチオペレーション講座(前編)ブロケード FC ファブリックスイッチオペレーション講座(前編)
ブロケード FC ファブリックスイッチオペレーション講座(前編)
Brocade57.2K views
Template Meta Programming入門から応用まで by yoshihikoozaki5
Template Meta Programming入門から応用までTemplate Meta Programming入門から応用まで
Template Meta Programming入門から応用まで
yoshihikoozaki512.2K views
C++ Template Meta Programming の紹介@社内勉強会 by Akihiko Matuura
C++ Template Meta Programming の紹介@社内勉強会C++ Template Meta Programming の紹介@社内勉強会
C++ Template Meta Programming の紹介@社内勉強会
Akihiko Matuura9.4K views

Similar to C++の話(本当にあった怖い話)

クラウド・アプリケーション・アーキテクチャ by
クラウド・アプリケーション・アーキテクチャクラウド・アプリケーション・アーキテクチャ
クラウド・アプリケーション・アーキテクチャTomoharu ASAMI
1.3K views57 slides
Quiz 9 by
Quiz 9Quiz 9
Quiz 9Keroles karam khalil
2.1K views4 slides
为什么 rust-lang 吸引我? by
为什么 rust-lang 吸引我?为什么 rust-lang 吸引我?
为什么 rust-lang 吸引我?勇浩 赖
2.7K views32 slides
C++ Programs by
C++ ProgramsC++ Programs
C++ ProgramsNarayanlalMenariya
164 views197 slides
ITGM #9 - Коварный CodeType, или от segfault'а к работающему коду by
ITGM #9 - Коварный CodeType, или от segfault'а к работающему кодуITGM #9 - Коварный CodeType, или от segfault'а к работающему коду
ITGM #9 - Коварный CodeType, или от segfault'а к работающему кодуdelimitry
221 views25 slides

Similar to C++の話(本当にあった怖い話)(20)

クラウド・アプリケーション・アーキテクチャ by Tomoharu ASAMI
クラウド・アプリケーション・アーキテクチャクラウド・アプリケーション・アーキテクチャ
クラウド・アプリケーション・アーキテクチャ
Tomoharu ASAMI1.3K views
为什么 rust-lang 吸引我? by 勇浩 赖
为什么 rust-lang 吸引我?为什么 rust-lang 吸引我?
为什么 rust-lang 吸引我?
勇浩 赖2.7K views
ITGM #9 - Коварный CodeType, или от segfault'а к работающему коду by delimitry
ITGM #9 - Коварный CodeType, или от segfault'а к работающему кодуITGM #9 - Коварный CodeType, или от segfault'а к работающему коду
ITGM #9 - Коварный CodeType, или от segfault'а к работающему коду
delimitry221 views
(Slightly) Smarter Smart Pointers by Carlo Pescio
(Slightly) Smarter Smart Pointers(Slightly) Smarter Smart Pointers
(Slightly) Smarter Smart Pointers
Carlo Pescio157 views
The Ring programming language version 1.8 book - Part 95 of 202 by Mahmoud Samir Fayed
The Ring programming language version 1.8 book - Part 95 of 202The Ring programming language version 1.8 book - Part 95 of 202
The Ring programming language version 1.8 book - Part 95 of 202
Python Evolution by Quintagroup
Python EvolutionPython Evolution
Python Evolution
Quintagroup1.9K views
Lift Presentation at DuSE VI by Peter Robinett
Lift Presentation at DuSE VILift Presentation at DuSE VI
Lift Presentation at DuSE VI
Peter Robinett1.7K views
Wap to implement bitwise operators by Harleen Sodhi
Wap to implement bitwise operatorsWap to implement bitwise operators
Wap to implement bitwise operators
Harleen Sodhi305 views
Facebook Glow Compiler のソースコードをグダグダ語る会 by Mr. Vengineer
Facebook Glow Compiler のソースコードをグダグダ語る会Facebook Glow Compiler のソースコードをグダグダ語る会
Facebook Glow Compiler のソースコードをグダグダ語る会
Mr. Vengineer2K views
非同期処理の通知処理 with Tatsumaki by keroyonn
非同期処理の通知処理 with Tatsumaki非同期処理の通知処理 with Tatsumaki
非同期処理の通知処理 with Tatsumaki
keroyonn1.2K views
Toonz code leaves much to be desired by PVS-Studio
Toonz code leaves much to be desiredToonz code leaves much to be desired
Toonz code leaves much to be desired
PVS-Studio148 views

More from Yuki Tamura

失敗から学ぶゲーム開発(ドラゴンジェネシス〜聖戦の絆〜の場合) by
失敗から学ぶゲーム開発(ドラゴンジェネシス〜聖戦の絆〜の場合)失敗から学ぶゲーム開発(ドラゴンジェネシス〜聖戦の絆〜の場合)
失敗から学ぶゲーム開発(ドラゴンジェネシス〜聖戦の絆〜の場合)Yuki Tamura
52.2K views51 slides
ネイティブ開発アンチパターン by
ネイティブ開発アンチパターンネイティブ開発アンチパターン
ネイティブ開発アンチパターンYuki Tamura
44.9K views48 slides
デザインパターンとは何か? by
デザインパターンとは何か?デザインパターンとは何か?
デザインパターンとは何か?Yuki Tamura
12K views62 slides
ソーシャルアプリ開発におけるチーム開発戦略後半 by
ソーシャルアプリ開発におけるチーム開発戦略後半ソーシャルアプリ開発におけるチーム開発戦略後半
ソーシャルアプリ開発におけるチーム開発戦略後半Yuki Tamura
1.5K views51 slides
ソーシャルアプリ開発におけるチーム開発戦略前半 by
ソーシャルアプリ開発におけるチーム開発戦略前半ソーシャルアプリ開発におけるチーム開発戦略前半
ソーシャルアプリ開発におけるチーム開発戦略前半Yuki Tamura
1.3K views51 slides
Boost study#4 by
Boost study#4Boost study#4
Boost study#4Yuki Tamura
3.9K views153 slides

More from Yuki Tamura(9)

失敗から学ぶゲーム開発(ドラゴンジェネシス〜聖戦の絆〜の場合) by Yuki Tamura
失敗から学ぶゲーム開発(ドラゴンジェネシス〜聖戦の絆〜の場合)失敗から学ぶゲーム開発(ドラゴンジェネシス〜聖戦の絆〜の場合)
失敗から学ぶゲーム開発(ドラゴンジェネシス〜聖戦の絆〜の場合)
Yuki Tamura52.2K views
ネイティブ開発アンチパターン by Yuki Tamura
ネイティブ開発アンチパターンネイティブ開発アンチパターン
ネイティブ開発アンチパターン
Yuki Tamura44.9K views
デザインパターンとは何か? by Yuki Tamura
デザインパターンとは何か?デザインパターンとは何か?
デザインパターンとは何か?
Yuki Tamura12K views
ソーシャルアプリ開発におけるチーム開発戦略後半 by Yuki Tamura
ソーシャルアプリ開発におけるチーム開発戦略後半ソーシャルアプリ開発におけるチーム開発戦略後半
ソーシャルアプリ開発におけるチーム開発戦略後半
Yuki Tamura1.5K views
ソーシャルアプリ開発におけるチーム開発戦略前半 by Yuki Tamura
ソーシャルアプリ開発におけるチーム開発戦略前半ソーシャルアプリ開発におけるチーム開発戦略前半
ソーシャルアプリ開発におけるチーム開発戦略前半
Yuki Tamura1.3K views
Boost study#4 by Yuki Tamura
Boost study#4Boost study#4
Boost study#4
Yuki Tamura3.9K views
12 分くらいで知るLuaVM by Yuki Tamura
12 分くらいで知るLuaVM12 分くらいで知るLuaVM
12 分くらいで知るLuaVM
Yuki Tamura5.5K views
最速の言語Lua ~Python Hack-a-thon #3~ by Yuki Tamura
最速の言語Lua ~Python Hack-a-thon #3~最速の言語Lua ~Python Hack-a-thon #3~
最速の言語Lua ~Python Hack-a-thon #3~
Yuki Tamura26.2K views

Recently uploaded

HTTP headers that make your website go faster - devs.gent November 2023 by
HTTP headers that make your website go faster - devs.gent November 2023HTTP headers that make your website go faster - devs.gent November 2023
HTTP headers that make your website go faster - devs.gent November 2023Thijs Feryn
21 views151 slides
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N... by
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...James Anderson
66 views32 slides
Uni Systems for Power Platform.pptx by
Uni Systems for Power Platform.pptxUni Systems for Power Platform.pptx
Uni Systems for Power Platform.pptxUni Systems S.M.S.A.
55 views21 slides
Case Study Copenhagen Energy and Business Central.pdf by
Case Study Copenhagen Energy and Business Central.pdfCase Study Copenhagen Energy and Business Central.pdf
Case Study Copenhagen Energy and Business Central.pdfAitana
16 views3 slides
From chaos to control: Managing migrations and Microsoft 365 with ShareGate! by
From chaos to control: Managing migrations and Microsoft 365 with ShareGate!From chaos to control: Managing migrations and Microsoft 365 with ShareGate!
From chaos to control: Managing migrations and Microsoft 365 with ShareGate!sammart93
9 views39 slides
AMAZON PRODUCT RESEARCH.pdf by
AMAZON PRODUCT RESEARCH.pdfAMAZON PRODUCT RESEARCH.pdf
AMAZON PRODUCT RESEARCH.pdfJerikkLaureta
19 views13 slides

Recently uploaded(20)

HTTP headers that make your website go faster - devs.gent November 2023 by Thijs Feryn
HTTP headers that make your website go faster - devs.gent November 2023HTTP headers that make your website go faster - devs.gent November 2023
HTTP headers that make your website go faster - devs.gent November 2023
Thijs Feryn21 views
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N... by James Anderson
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...
James Anderson66 views
Case Study Copenhagen Energy and Business Central.pdf by Aitana
Case Study Copenhagen Energy and Business Central.pdfCase Study Copenhagen Energy and Business Central.pdf
Case Study Copenhagen Energy and Business Central.pdf
Aitana16 views
From chaos to control: Managing migrations and Microsoft 365 with ShareGate! by sammart93
From chaos to control: Managing migrations and Microsoft 365 with ShareGate!From chaos to control: Managing migrations and Microsoft 365 with ShareGate!
From chaos to control: Managing migrations and Microsoft 365 with ShareGate!
sammart939 views
AMAZON PRODUCT RESEARCH.pdf by JerikkLaureta
AMAZON PRODUCT RESEARCH.pdfAMAZON PRODUCT RESEARCH.pdf
AMAZON PRODUCT RESEARCH.pdf
JerikkLaureta19 views
SAP Automation Using Bar Code and FIORI.pdf by Virendra Rai, PMP
SAP Automation Using Bar Code and FIORI.pdfSAP Automation Using Bar Code and FIORI.pdf
SAP Automation Using Bar Code and FIORI.pdf
Special_edition_innovator_2023.pdf by WillDavies22
Special_edition_innovator_2023.pdfSpecial_edition_innovator_2023.pdf
Special_edition_innovator_2023.pdf
WillDavies2217 views
6g - REPORT.pdf by Liveplex
6g - REPORT.pdf6g - REPORT.pdf
6g - REPORT.pdf
Liveplex10 views
Attacking IoT Devices from a Web Perspective - Linux Day by Simone Onofri
Attacking IoT Devices from a Web Perspective - Linux Day Attacking IoT Devices from a Web Perspective - Linux Day
Attacking IoT Devices from a Web Perspective - Linux Day
Simone Onofri15 views
Empathic Computing: Delivering the Potential of the Metaverse by Mark Billinghurst
Empathic Computing: Delivering  the Potential of the MetaverseEmpathic Computing: Delivering  the Potential of the Metaverse
Empathic Computing: Delivering the Potential of the Metaverse
Mark Billinghurst476 views
Data-centric AI and the convergence of data and model engineering: opportunit... by Paolo Missier
Data-centric AI and the convergence of data and model engineering:opportunit...Data-centric AI and the convergence of data and model engineering:opportunit...
Data-centric AI and the convergence of data and model engineering: opportunit...
Paolo Missier39 views
iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas... by Bernd Ruecker
iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas...iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas...
iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas...
Bernd Ruecker33 views

C++の話(本当にあった怖い話)

  • 2. name:Isoparametric blog:http://d.hatena.ne.jp/Isoparametric/ Blog …… …… Python/Django 2010 7 10
  • 3. C++ C++ C 1983 C with Classes 2010 7 10
  • 4. C++ 1. 2. 3. 4. 2010 7 10
  • 6. if, for, while C (RTTI) 2010 7 10
  • 7. C++ (1986) C++ 2010 7 10
  • 8. C++ C 2010 7 10
  • 9. C++ C 2010 7 10
  • 10. C++ 2010 7 10
  • 11. C++ 2010 7 10
  • 12. C++ 2010 7 10
  • 13. 2010 7 10
  • 14. #include <iostream> #include <algorithm> #include <boost/array.hpp> using namespace std; // letsboost int main() { boost::array<int, 100> ar; // int ar[100]; for( int i=0; i<ar.size(); ++i ) ar[i] = i * 100; boost::array<int, 4> ar2 = {{0, 100, 200, 300}}; if( equal( ar2.begin(), ar2.end(), ar.begin() ) ) cout << "same" << endl; return 0; } boost::array 2010 7 10
  • 15. /* The following code declares class array, * an STL container (as wrapper) for arrays of constant size. * * See * http://www.boost.org/libs/array/ * for documentation. * * The original author site is at: http://www.josuttis.com/ * * (C) Copyright Nicolai M. Josuttis 2001. * * Distributed under the Boost Software License, Version 1.0. (See * accompanying file LICENSE_1_0.txt or copy at * http://www.boost.org/LICENSE_1_0.txt) * * 10 Mar 2010 - (mtc) fill method added, matching resolution of the standard library working group. * See <http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#776> or Trac issue #3168 * Eventually, we should remove "assign" which is now a synonym for "fill" (Marshall Clow) * 10 Mar 2010 - added workaround for SUNCC and !STLPort [trac #3893] (Marshall Clow) * 29 Jan 2004 - c_array() added, BOOST_NO_PRIVATE_IN_AGGREGATE removed (Nico Josuttis) * 23 Aug 2002 - fix for Non-MSVC compilers combined with MSVC libraries. * 05 Aug 2001 - minor update (Nico Josuttis) * 20 Jan 2001 - STLport fix (Beman Dawes) * 29 Sep 2000 - Initial Revision (Nico Josuttis) * * Jan 29, 2004 */ #ifndef BOOST_ARRAY_HPP #define BOOST_ARRAY_HPP #include <boost/detail/workaround.hpp> #if BOOST_WORKAROUND(BOOST_MSVC, >= 1400) # pragma warning(push) # pragma warning(disable:4996) // 'std::equal': Function call with parameters that may be unsafe # pragma warning(disable:4510) // boost::array<T,N>' : default constructor could not be generated # pragma warning(disable:4610) // warning C4610: class 'boost::array<T,N>' can never be instantiated - user defined constru required #endif #include <cstddef> #include <stdexcept> #include <boost/assert.hpp> #include <boost/swap.hpp> 2010 7 10
  • 16. 2010 7 10
  • 17. 2010 7 10
  • 18. 2010 7 10
  • 19. 2010 7 10
  • 20. 2010 7 10
  • 21. 2010 7 10
  • 22. 2010 7 10
  • 23. 2010 7 10
  • 24. 2010 7 10
  • 25. 2010 7 10
  • 26. 2010 7 10
  • 27. 2010 7 10
  • 28. 2010 7 10
  • 29. 2010 7 10
  • 30. 2010 7 10
  • 31. 2010 7 10
  • 32. 2010 7 10
  • 33. 2010 7 10
  • 34. 2010 7 10
  • 35. 2010 7 10
  • 36. 2010 7 10
  • 37. 2010 7 10
  • 38. 2010 7 10
  • 39. 2010 7 10
  • 40. 2010 7 10
  • 41. 2010 7 10
  • 42. 2010 7 10
  • 43. 2010 7 10
  • 44. 2010 7 10
  • 45. 2010 7 10
  • 46. 2010 7 10
  • 47. 2010 7 10
  • 48. 2010 7 10
  • 49. 2010 7 10
  • 50. 2010 7 10
  • 51. 2010 7 10
  • 52. 2010 7 10
  • 53. 2010 7 10
  • 54. 2010 7 10
  • 55. 2010 7 10
  • 56. 2010 7 10
  • 57. 2010 7 10
  • 58. 2010 7 10
  • 59. 2010 7 10
  • 60. 2010 7 12
  • 61. 2010 7 12
  • 62. 2010 7 10
  • 63. 2010 7 10
  • 64. 2010 7 10
  • 66. 2010 7 10
  • 67. 2010 7 10
  • 68. 2010 7 10
  • 69. C++ C++ 2010 7 10
  • 70. 2010 7 10