C
Christopher
What are the requirements for map keys?
If I remember correctly, they just need a operator < ?
I need to be able to look up objects on the fly depending on this an
array of these structures from another library:
typedef struct D3D10_INPUT_ELEMENT_DESC
{
LPCSTR SemanticName;
UINT SemanticIndex;
DXGI_FORMAT Format;
UINT InputSlot;
UINT AlignedByteOffset;
D3D10_INPUT_CLASSIFICATION InputSlotClass;
UINT InstanceDataStepRate;
} D3D10_INPUT_ELEMENT_DESC;
Everything equates to an int or enum except the lowsy LPCSTR which is
a long pointer to a c style string, yuck.
I think I could wrap it and provide comparison operators if need be. I
am not sure how to compare the LPCSTR though. If I create a
std::string from it, is there a built string comparison operators or
do I have to write one?
If I remember correctly, they just need a operator < ?
I need to be able to look up objects on the fly depending on this an
array of these structures from another library:
typedef struct D3D10_INPUT_ELEMENT_DESC
{
LPCSTR SemanticName;
UINT SemanticIndex;
DXGI_FORMAT Format;
UINT InputSlot;
UINT AlignedByteOffset;
D3D10_INPUT_CLASSIFICATION InputSlotClass;
UINT InstanceDataStepRate;
} D3D10_INPUT_ELEMENT_DESC;
Everything equates to an int or enum except the lowsy LPCSTR which is
a long pointer to a c style string, yuck.
I think I could wrap it and provide comparison operators if need be. I
am not sure how to compare the LPCSTR though. If I create a
std::string from it, is there a built string comparison operators or
do I have to write one?