Explorar el Código

base: add Array::Data() method to access the underlying buffer.

undefined
Sam Hocevar hace 13 años
padre
commit
231b99714f
Se han modificado 1 ficheros con 10 adiciones y 0 borrados
  1. +10
    -0
      src/lol/base/array.h

+ 10
- 0
src/lol/base/array.h Ver fichero

@@ -136,6 +136,16 @@ public:
return m_data[m_count - 1]; return m_data[m_count - 1];
} }


inline Element *Data()
{
return m_data;
}

inline Element const *Data() const
{
return m_data;
}

inline Element const& Last() const inline Element const& Last() const
{ {
ASSERT(m_count > 0); ASSERT(m_count > 0);


Cargando…
Cancelar
Guardar