It is important to remember that macros, like all metaprogramming, should be used sparingly.
Ważną rzeczą do zapamiętania jest to, że makra tak jak całe metaprogramowanie powinny być używane oszczędnie.
This allows easy writing of programs which manipulate other programs (metaprogramming).
Umożliwia to łatwe pisanie programów, które operują na innych programach (metaprogramowanie).
The C++ Standards Committee has decided to introduce a library that allows metaprogramming during compiling via templates.
C++ Standards Committee zdecydował wprowadzić bibliotekę pozwalającą na metaprogramowanie szablonami podczas kompilacji.
Metaprogramming is supported by a combination of templates, compile time function execution, tuples, and string mixins.
Metaprogramowanie jest wspierane przez kombinację szablonów, wykonywania funkcji w trakcie kompilacji, krotek oraz domieszkowania tekstu.
A word of caution: Metaprogramming is tricky and should only be used when absolutely necessary.
Drobna uwaga: metaprogramowanie jest zawiłe i powinno być stosowane tylko w ostateczności.
The first step to metaprogramming is understanding how expressions are represented.
Pierwszym krokiem w metaprogramowaniu jest zrozumienie, jak reprezentowana jest składnia programu.
Template metaprogramming allows programmer to perform some computations during compile time.
Technika ta pozwala programiście na wykonywanie obliczeń w czasie kompilacji.
Therefore, storing intermediates in variables is difficult, possibly requiring knowledge of the internals of a particular metaprogramming library.
However, with the advent of template types and template metaprogramming techniques, the type of something, particularly the well-defined return value of a function, may not be easily expressed.
Jednakże od momentu pojawienia się typów szablonowych i technik metaprogramowania, typ czegokolwiek, w szczególności typ wartości zwracanej przez funkcję, nie jest łatwy do wyrażenia.
The library makes extensive use of C++ template metaprogramming and implements several commonly used tools: type list, functor, singleton, smart pointer, object factory, visitor and multimethods.
Biblioteka korzysta z metaprogramowania i implementuje kilka często używanych narzędzi takich jak: lista typów, funktor, singleton, sprytny wskaźnik, fabryka obiektów, wizytator oraz multimetoda.
MS has some tips for template metaprogramming in C++ link, and how to optimize such code link.
MS opublikował kilka wskazówek dotyczących metaprogramowania szablonów w C++ link, a także informacje, w jaki sposób zoptymalizować taki kod link.
The Rails version of Active Record discovers the columns in a database schema and automatically attaches them to your domain objects using metaprogramming.
Wersja Rails Active Record odkrywa kolumny w schemacie bazy danych i automatycznie dołącza je do swoich obiektów domeny za pomocą meta-programowanie.
Metaprogramming consists of creating a program that creates or modifies another program (or itself).