mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
Fixed type-name mixup in string_span.
This commit is contained in:
parent
6fadce975b
commit
a88cfb168a
@ -362,21 +362,19 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
// first Count elements
|
||||
template <index_type Count>
|
||||
constexpr basic_string_span<element_type, Count> first() const
|
||||
{
|
||||
return {span_.template first<Count>()};
|
||||
}
|
||||
|
||||
constexpr basic_string_span<index_type, dynamic_extent> first(index_type count) const
|
||||
constexpr basic_string_span<element_type, dynamic_extent> first(index_type count) const
|
||||
{
|
||||
return {span_.first(count)};
|
||||
}
|
||||
|
||||
// last Count elements
|
||||
template <index_type Count>
|
||||
constexpr basic_string_span<index_type, Count> last() const
|
||||
constexpr basic_string_span<element_type, Count> last() const
|
||||
{
|
||||
return {span_.template last<Count>()};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user