The keyword constexpr instructs the compiler to compute the expression, if possible. For example, a simple function that divides two numbers may be declared as a constexpr: constexpr double Div_Expr(double a, double b) { return a / b; } The function can be used by a variable that is...
Also, I could imagine cases where one would like to define enums and structs in interfaces as well (to be used as parameter types in methods of the interface). The way it is now, these "external" definitions have to be carried along as added baggage to the interfaces, and clients have...
Business functions frequently return error codes and pointers. The input and output parameters in the business function data structure should be named as follows: Input and Output ParameterDescription cReturnPointerWhen allocating memory and returningGENLNG. ...
1. Your structs should never be so big that shuffling them about on a sort causes efficiency concerns. > 2. The solution given will not be more efficient for sorting. In order to get the structs into the array of objects, each struct will have to be boxed. This means that an object ...