Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
spacey-sooty committed Mar 2, 2024
1 parent 11b8d8a commit d983517
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
4 changes: 4 additions & 0 deletions wombat/src/main/cpp/utils/Cache.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2023-2024 CurtinFRC
// Open Source Software, you can modify it according to the terms
// of the MIT License at the root of this project

#include "utils/Cache.h"

#include "utils/Util.h"
Expand Down
10 changes: 7 additions & 3 deletions wombat/src/main/include/utils/Cache.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
#pragma once
// Copyright (c) 2023-2024 CurtinFRC
// Open Source Software, you can modify it according to the terms
// of the MIT License at the root of this project

#include <functional>
#pragma once

#include <units/time.h>

#include <functional>

namespace wom {
namespace utils {

Expand All @@ -16,7 +20,7 @@ class Cached {
*
* @param supplier A function that sources the value.
*/
Cached(std::function<T()> supplier);
explicit Cached(std::function<T()> supplier);

/**
* Creates a new Cached<T> with the given supplier.
Expand Down

0 comments on commit d983517

Please sign in to comment.