Your boss doesn't give you a raise - you find another job.
(If you can't find a higher salary elsewhere, what reason is there for your boss to offer more?)
You're in salary negotiations for a potential new job, they don't offer enough - stay at your current job.
You're interviewing when you have a job and the interviewer is being a tremendous douchebag - walk out.