8 #ifndef BOOST_GIL_IO_GET_READ_DEVICE_HPP 9 #define BOOST_GIL_IO_GET_READ_DEVICE_HPP 11 #include <boost/gil/io/device.hpp> 12 #include <boost/gil/io/path_spec.hpp> 14 #include <boost/mpl/and.hpp> 16 #include <type_traits> 18 namespace boost {
namespace gil {
24 struct get_read_device
27 template <
typename Device,
typename FormatTag>
28 struct get_read_device
32 typename
std::enable_if
36 detail::is_adaptable_input_device<FormatTag, Device>,
37 is_format_tag<FormatTag>
42 using type =
typename detail::is_adaptable_input_device
49 template <
typename String,
typename FormatTag>
50 struct get_read_device
54 typename
std::enable_if
58 detail::is_supported_path_spec<String>,
59 is_format_tag<FormatTag>
64 using type = detail::file_stream_device<FormatTag>;
Definition: algorithm.hpp:30
Definition: algorithm.hpp:127