[#BloombergLP-bdlt-TimetableCache-lookupTimetable]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/TimetableCache.adoc[TimetableCache]::lookupTimetable
:relfileprefix: ../../../
:mrdocs:

Look up a timetable by name without loading it&period;

== Synopsis

Declared in `&lt;bdlt&lowbar;timetablecache&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/shared_ptr-0a.adoc[bsl::shared&lowbar;ptr&lt;Timetable const&gt;]
lookupTimetable(char const* timetableName) const;
----

== Description

Return a shared pointer providing non&hyphen;modifiable access to the timetable having the specified `timetableName` in this timetable cache&period; If the timetable having `timetableName` is not found in the cache, or if the timetable has expired (i&period;e&period;, per a timeout optionally supplied at construction), return an empty shared pointer&period;

== Return Value

shared pointer to the timetable, or empty if not found

== Parameters

[cols="1,4"]
|===
| Name| Description
| *timetableName*
| name of the timetable to look up
|===


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