image: request iterator accessors be inlined

assists optimisation in LTO enabled applications
This commit is contained in:
Danny Robson 2015-07-24 01:36:42 +10:00
parent c2bdd29944
commit 57808c92b5

View File

@ -301,7 +301,7 @@ buffer<T>::operator[] (size_t idx)
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
template <typename T> template <typename T>
T* inline T*
buffer<T>::data (void) buffer<T>::data (void)
{ {
return begin (); return begin ();
@ -310,7 +310,7 @@ buffer<T>::data (void)
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
template <typename T> template <typename T>
T* inline T*
buffer<T>::begin (void) buffer<T>::begin (void)
{ {
return m_data.get (); return m_data.get ();
@ -319,7 +319,7 @@ buffer<T>::begin (void)
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
template <typename T> template <typename T>
T* inline T*
buffer<T>::end (void) buffer<T>::end (void)
{ {
return begin () + h * s; return begin () + h * s;
@ -328,7 +328,7 @@ buffer<T>::end (void)
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
template <typename T> template <typename T>
const T* inline const T*
buffer<T>::data (void) const buffer<T>::data (void) const
{ {
return begin (); return begin ();
@ -337,7 +337,7 @@ buffer<T>::data (void) const
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
template <typename T> template <typename T>
const T* inline const T*
buffer<T>::begin (void) const buffer<T>::begin (void) const
{ {
return m_data.get (); return m_data.get ();
@ -346,7 +346,7 @@ buffer<T>::begin (void) const
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
template <typename T> template <typename T>
const T* inline const T*
buffer<T>::end (void) const buffer<T>::end (void) const
{ {
return begin () + h * s; return begin () + h * s;