/usr/include/boost/gil/io
Edit: /usr/include/boost/gil/io/get_read_device.hpp (1403B)
//
// Copyright 2012 Christian Henning
//
// Distributed under the Boost Software License, Version 1.0
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt
//
#ifndef BOOST_GIL_IO_GET_READ_DEVICE_HPP
#define BOOST_GIL_IO_GET_READ_DEVICE_HPP
#include
#include
#include
#include
namespace boost { namespace gil {
template< typename T
, typename FormatTag
, class Enable = void
>
struct get_read_device
{};
template
struct get_read_device
<
Device,
FormatTag,
typename std::enable_if
<
mp11::mp_and
<
detail::is_adaptable_input_device,
is_format_tag
>::value
>::type
>
{
using type = typename detail::is_adaptable_input_device
<
FormatTag,
Device
>::device_type;
};
template
struct get_read_device
<
String,
FormatTag,
typename std::enable_if
<
mp11::mp_and
<
detail::is_supported_path_spec,
is_format_tag
>::value
>::type
>
{
using type = detail::file_stream_device;
};
} // namespace gil
} // namespace boost
#endif