ei_meta_sqrt< Y, InfX, SupX, Done > Class Template Reference
#include <Meta.h>
List of all members.
Public Types |
enum | { ret = ei_meta_sqrt<Y,
NewInf = int(TakeInf) ? InfX : int(MidX),
ret = ei_meta_sqrt<Y
} |
Private Types |
enum | { MidX = (InfX+SupX)/2,
TakeInf = MidX*MidX > Y ? 1 : 0,
NewInf = int(TakeInf) ? InfX : int(MidX),
NewSup = int(TakeInf) ? int(MidX) : SupX
} |
Detailed Description
template<int Y, int InfX = 0, int SupX = ((Y==1) ? 1 : Y/2), bool Done = ((SupX-InfX)<=1 ? true : ((SupX*SupX <= Y) && ((SupX+1)*(SupX+1) > Y)))>
class ei_meta_sqrt< Y, InfX, SupX, Done >
Definition at line 134 of file Meta.h.
Member Enumeration Documentation
template<int Y, int InfX = 0, int SupX = ((Y==1) ? 1 : Y/2), bool Done = ((SupX-InfX)<=1 ? true : ((SupX*SupX <= Y) && ((SupX+1)*(SupX+1) > Y)))>
- Enumerator:
MidX |
|
TakeInf |
|
NewInf |
|
NewSup |
|
Definition at line 136 of file Meta.h.
template<int Y, int InfX = 0, int SupX = ((Y==1) ? 1 : Y/2), bool Done = ((SupX-InfX)<=1 ? true : ((SupX*SupX <= Y) && ((SupX+1)*(SupX+1) > Y)))>
- Enumerator:
-
Definition at line 143 of file Meta.h.
The documentation for this class was generated from the following file: