Skip to content

Instantly share code, notes, and snippets.

@beached
beached / iterator_templates.md
Last active August 15, 2024 23:02
Templates for Iterators

Input Iterator

struct input_iterator {  
  using value_type = T;
  using reference = T const &;
  using pointer = T const *;
  using difference_type = std::ptrdiff_t;
  using iterator_category = std::input_iterator_tag;

  pointer ptr;

How to fix missing Safari Extensions

  • Quit Safari
  • Open a Terminal and execute this command:
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user
  • Open Safari