/***************************************************************************
*                                                                          *
*  Copyright (C) Golaem S.A.  All Rights Reserved.                         *
*                                                                          *
***************************************************************************/

#pragma once

#include "glmCoreAPI.h"

namespace glm
{
	/**
	* \brief validate that index is inbound
	* \param value value to be tested
	* \return true if value >= 0 
	* \ingroup containers
	* \author Golaem <dev@golaem.com>
	*/
	GLM_FORCE_INLINE bool isIndexValid( int value ) 
	{
		return ( value >= 0 );
	}

	/**
	* \brief validate that index is inbound
	* \param value value to be tested
	* \param maxSize maximum size of the container
	* \return true if value >= 0 & value < maxSize
	* \ingroup containers
	* \author Golaem <dev@golaem.com>
	*/
	GLM_FORCE_INLINE bool isIndexValid( int value, int maxSize ) 
	{
		return ( value >= 0 && value < maxSize );
	}
}

