Using the C++ Math Library | ![]() ![]() |
Programming Efficient Indices
If you use the same index repeatedly, store it in an mwIndex
variable instead of creating it each time. The cost of creating mwIndex
objects is low, but measurable. If you are bothered by having to type colon()
too frequently, you can create an mwIndex
variable with a shorter name, mwIndex all
, for example, and use it instead of the colon()
function.
![]() | The mwIndex Class | Calling Library Functions | ![]() |