In C ++ 98 / C +03, there is no one in the language.
-
Has it changed to C ++ 0x?
-
If so, it is possible to set such a flag on the function object (
std :: function
)? So I can pass some function pointer or lambda functions and give additional information that this is a pure / consonable function? Function functions can have a customized execution path for such functions. -
Is there a way to check a function Pure / Constant? To wit. For example, if there is such a flag on
std :: function
as described above, then maybe I can check that flag but maybe this is another normal way.
If this has not changed, why not? I think it may be very useful to get such a support.
Is there any open offer about this?
- Has it changed to C ++ 0x?
is not a constexpr
, but it means that time constants are compiled even if its parameters are constexprs
It is executed at compile time, but it is otherwise a regular task as they should be defined in the same translation unit and will include a single return statement, they will probably be inline and the above will be optimized. It can not be used to provide compiler information about externally connected functions.
If this has not changed, why not? I think it may be very useful to get such a support.
Actually I do not think you need it. The language is already very large, and programmers can rewrite this code and can be more efficient based on its knowledge. Contrary to Restricted
, it does not provide any information that can not be expressed in other ways.
Is there any open offer about it?
I have not seen any committee letter on that subject.
Comments
Post a Comment