翻訳と辞書
Words near each other
・ Headley Bennett
・ Headley Britannia
・ Headley Court
・ Headley Cunningham
・ Headley Down
・ Headley Grange
・ Headley Green, Lexington
・ Headley Keith
・ Headley v. Church of Scientology International
・ Headley Water Mill
・ Headley, Basingstoke and Deane
・ Header
・ Header (computing)
・ Header (film)
・ Header check sequence
Header-only
・ HeaderDoc
・ Headfirst for Halos
・ Headfirst Into Everything
・ HeadFirst PD
・ Headfirst Productions
・ Headfirst Slide into Cooperstown on a Bad Bet
・ Headfirst Straight to Hell
・ Headford
・ Headford Ambush
・ Headfort
・ Headfort House
・ Headfort School
・ Headframe
・ Headful of Ghosts


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

Header-only : ウィキペディア英語版
Header-only
In the context of the C or C++ programming languages, a library is called header-only if the full definitions of all macros, functions and classes comprising the library are visible to the compiler in a header file form. Header-only libraries do not need to be separately compiled, packaged and installed in order to be used. All that is required is to point the compiler at the location of the headers (the -I switch in gcc/g++), and then #include the header files into the application source. Another advantage is that the compiler's optimizer can do a much better job when all the libraries source code is available.
The disadvantages include:
* brittleness – most changes to the library will require recompilation of all compilation units using that library
* longer compilation times – the compilation unit must see the implementation of all components in the included files, rather than just their interfaces
* code-bloat (this may be disputed) – the necessary use of inline statements in non-class functions can lead to code bloat by over-inlining.
Nonetheless, the header-only form is popular because it avoids the (often much more serious) problem of packaging.
For templates, including the definitions in header is the only way to compile, since the compiler needs to know the full definition of the templates in order to instantiate.
== List of (mostly) header-only libraries ==

* Some of the Boost C++ Libraries
* (OpenGL Mathematics )
* STLSoft C++ Libraries
* VOLE
* (SGI STL )
* (MiLi )
* (WebSocket++ )
* (SGLIB )
* (EIGEN )
* (uthash )
* (JUCE )
* (MAVLink )
* (RapidJSON )

抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「Header-only」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.