mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
Remove "using namespace std;" from headers
[artf3605] Change-Id: I0dc6172114608eb5e52d341be8064758faa1c781
This commit is contained in:
committed by
Thomas Clark
parent
1bcdd301eb
commit
323022acfd
@@ -4,19 +4,17 @@
|
||||
#include <map>
|
||||
#include <string>
|
||||
|
||||
using namespace std;
|
||||
|
||||
/**
|
||||
* A simple cache that allows for caching the mapping of one string to another calculated one
|
||||
*
|
||||
*
|
||||
* @author Mitchell
|
||||
*
|
||||
*/
|
||||
class StringCache {
|
||||
private:
|
||||
map<std::string, std::string> cache;
|
||||
std::map<std::string, std::string> cache;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @param input
|
||||
* @return the value for a given input
|
||||
@@ -24,10 +22,10 @@ private:
|
||||
public:
|
||||
StringCache();
|
||||
virtual ~StringCache();
|
||||
|
||||
|
||||
|
||||
|
||||
std::string& Get(const std::string& input);
|
||||
|
||||
|
||||
/**
|
||||
* Will only be called if a value has not already been calculated
|
||||
* @param input
|
||||
|
||||
Reference in New Issue
Block a user