view: style

This commit is contained in:
Danny Robson 2016-02-10 13:07:03 +11:00
parent a6b86bed92
commit f610a70950
2 changed files with 8 additions and 6 deletions

View File

@ -53,7 +53,8 @@ namespace util {
};
template <typename T>
std::ostream& operator<< (std::ostream&, view<T>);
std::ostream&
operator<< (std::ostream&, view<T>);
}
#include "./view.ipp"

View File

@ -23,8 +23,6 @@
#include "debug.hpp"
#include <iterator>
///////////////////////////////////////////////////////////////////////////////
template <typename T>
@ -95,7 +93,8 @@ util::view<T>::find (value_type v) const noexcept
///////////////////////////////////////////////////////////////////////////////
template <typename T>
constexpr bool
constexpr
bool
util::view<T>::empty (void) const noexcept
{
return m_begin == m_end;
@ -104,7 +103,8 @@ util::view<T>::empty (void) const noexcept
//-----------------------------------------------------------------------------
template <typename T>
constexpr size_t
constexpr
size_t
util::view<T>::size (void) const noexcept
{
return m_end - m_begin;
@ -113,7 +113,8 @@ util::view<T>::size (void) const noexcept
///////////////////////////////////////////////////////////////////////////////
template <typename T>
constexpr const typename util::view<T>::value_type&
constexpr
const typename util::view<T>::value_type&
util::view<T>::operator[] (size_t idx) const noexcept
{
return m_begin[idx];