[#absl-Span-last]
= xref:absl.adoc[absl]::xref:absl/Span.adoc[Span]::last
:relfileprefix: ../../
:mrdocs:

Returns a span containing the last `len` elements&period;

== Synopsis

Declared in `&lt;absl&sol;types&sol;span&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
xref:absl/Span.adoc[Span]
last(xref:absl/Span/size_type.adoc[size&lowbar;type] len) const;
----

== Description

`len` must be `&lt;&equals; size()`&period;

== Return Value

A span over the last `len` elements&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *len*
| Number of elements from the back to include&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
