WPILibC++  2019.2.1-3-g1349dd4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
hostname.h
1 /*----------------------------------------------------------------------------*/
2 /* Copyright (c) 2017-2018 FIRST. All Rights Reserved. */
3 /* Open Source Software - may be modified and shared by FRC teams. The code */
4 /* must be accompanied by the FIRST BSD license file in the root directory of */
5 /* the project. */
6 /*----------------------------------------------------------------------------*/
7 
8 #ifndef WPIUTIL_WPI_HOSTNAME_H_
9 #define WPIUTIL_WPI_HOSTNAME_H_
10 
11 #include <string>
12 
13 #include "wpi/StringRef.h"
14 
15 namespace wpi {
16 template <typename T>
18 
19 std::string GetHostname();
20 StringRef GetHostname(SmallVectorImpl<char>& name);
21 } // namespace wpi
22 
23 #endif // WPIUTIL_WPI_HOSTNAME_H_
This class consists of common code factored out of the SmallVector class to reduce code duplication b...
Definition: hostname.h:17
WPILib C++ utilities (wpiutil) namespace.
Definition: SmallString.h:21
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:49